Files
yavsc/web/Views/Blogs/Post.aspx
Paul Schneider 57a473aff8 Many changes :
* JsonReaderError.aspx: display a nice json conversion error

* CalendarEntryList.cs: new Google data for the calendar entries

* JsonReaderError.cs: Json error model

* README.md: Documentation url

* NpgsqlBlogProvider.cs: Update the blog post title

* BlogsController.cs: - Updating the blog post title
- bug fix rendering the avatar

* FrontOfficeController.cs: - the client cannot modify its estimation

* GoogleController.cs: - implementing the calendar entries retrieval

* HomeController.cs: - the home start page from configuration
  parameter named "StartPage"

* Global.asax.cs: - back to a clean global.asax

* style.css: showing the main area with a background transparent color

* Post.aspx: Bug fix: the message was displayed two times (we keep the
  one from app.master)

* UserPost.aspx: the blog title comes from the poster profile found in
  ViewData

* DateQuery.aspx: implementing the date query

* Web.config: the start page now comes from Web.config

* Web.csproj: the Sql db creation script should not be deployed,
  neither as package.config

* BlogManager.cs: updating the blog post title

* BlogProvider.cs: yavscModel/Blogs/BlogManager.cs


* YavscModel.csproj: new cs files to compile

* App.master: returning from the Google login
2015-01-06 10:15:24 +01:00

70 lines
2.2 KiB
Plaintext

<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<BlogEditEntryModel>" MasterPageFile="~/Models/App.master"%>
<asp:Content ContentPlaceHolderID="head" ID="head1" runat="server" >
<script type="text/javascript" src="/Scripts/jquery-2.1.1.js"></script>
<script type="text/javascript" src="/Scripts/rangyinputs-jquery-1.1.2.js"></script>
</asp:Content>
<asp:Content ContentPlaceHolderID="overHeaderOne" ID="headerContent" runat="server">
<h1 class="blogtitle">
<a href="/Blog/<%=ViewData["UserName"]%>">
<img class="avatar" src="/Blogs/Avatar?user=<%=ViewData["UserName"]%>" alt="from <%=ViewData["UserName"]%>"/>
<%= Html.Encode(ViewData["BlogTitle"]) %> </a> -
Nouveau billet -
<a href="/"><%= Html.Encode(YavscHelpers.SiteName) %></a> </h1>
</asp:Content>
<asp:Content ContentPlaceHolderID="MainContent" ID="MainContentContent" runat="server">
<% if (Model != null ) if (Model.Content != null ) { %>
<div class="blogpost">
<%= BBCodeHelper.Parser.ToHtml(Model.Content) %>
</div>
<% } %>
<div class="editpost">
<%= Html.ValidationSummary() %>
<% using(Html.BeginForm("ValidatePost", "Blogs")) %>
<% { %>
<%= Html.LabelFor(model => model.Title) %>:<br/>
<%= Html.TextBox( "Title" ) %>
<%= Html.ValidationMessage("Title", "*") %>
<br/>
<div>
Usage BBcodes :
<ul>
<% foreach (string usage in BBCodeHelper.BBTagsUsage) { %>
<li><%= usage %></li>
<% } %>
</ul>
</div>
<%= Html.LabelFor(model => model.Content) %>:<br/>
<%= Html.TextArea( "Content", new { @class="editblog", @rows="15" }) %>
<%= Html.ValidationMessage("Content", "*") %>
<br/>
<%= Html.CheckBox( "Visible" ) %>
<%= Html.LabelFor(model => model.Visible) %>
<%= Html.ValidationMessage("Visible", "*") %>
<br/>
<%= Html.CheckBox( "Preview" ) %> <%= Html.LabelFor(model => model.Preview) %>
<%= Html.ValidationMessage("Preview", "*") %>
<br/>
<%= Html.Hidden("Id") %>
<input type="button" id="btnpreview" value="<%= T.GetString("Preview") %>"/>
<input type="submit"/>
<input type="button" id="testbtn">
<script language="Javascript">
$(document).ready(function () {
$("#testbtn").click(function () {
$("#Content").replaceSelectedText("SOME NEW TEXT");
});
});
</script>
<% } %>
</div>
</asp:Content>