Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Can now edit and save news items.
- Loading branch information
Maher Hawash
committed
Apr 16, 2012
1 parent
7162111
commit 3681b41
Showing
8 changed files
with
74 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
@ModelType Hometastic.Models.News | ||
|
||
@Code | ||
Layout = "~/Views/Shared/_ManagementCompanyLayout.vbhtml" | ||
End Code | ||
|
||
@Html.Partial("_Form") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
@ModelType Hometastic.Models.News | ||
|
||
<h2>Manage News / Announcements</h2> | ||
<p> | ||
To post an announcement or news article on your site please enter its title, provide | ||
a brief summary in the "Headline" field, and type in the announcement in the "Article" | ||
field. When you are done click on the [Save] button. | ||
</p> | ||
|
||
<div id="main-body"> | ||
@Using Html.BeginForm() | ||
@<div class="news edit"> | ||
<div class="field"> | ||
@Html.Label("Title") | ||
@Html.TextBox("TITLE", Model.Value("TITLE")) | ||
</div> | ||
<div class="field"> | ||
@Html.Label("Headline") | ||
@Html.TextArea("HEADLINE", Model.Value("HEADLINE")) | ||
</div> | ||
<div class="field"> | ||
@Html.Label("Article") | ||
@Html.TextArea("BODY", Model.Body) | ||
</div> | ||
</div> | ||
@<div id="action"> | ||
<input type="submit" value="Add item" /> | ||
</div> | ||
End Using | ||
</div> |