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
BUGFIX: Catch and display validation errors when adding a page.
- Loading branch information
Showing
2 changed files
with
43 additions
and
37 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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,37 +1,36 @@ | |||
<% with AddForm %> | <div class="cms-content center $BaseCSSClasses" data-layout-type="border" data-pjax-fragment="Content"> | ||
<form $FormAttributes data-layout-type="border"> | <% with AddForm %> | ||
|
<form $FormAttributes data-layout-type="border"> | ||
<div class="cms-content-header north"> | <div class="cms-content-header north"> | ||
<div class="cms-content-header-info"> | <div class="cms-content-header-info"> | ||
<h2><% _t('CMSAddPageController.Title','Add page') %></h2> | <h2><% _t('CMSAddPageController.Title','Add page') %></h2> | ||
</div> | |||
</div> | </div> | ||
</div> |
|
||
|
<div class="cms-content-fields center cms-panel-content cms-panel-padded"> | ||
<div class="cms-content-fields center cms-panel-content cms-panel-padded"> | <% if Message %> | ||
|
<p id="{$FormName}_error" class="message $MessageType">$Message</p> | ||
<% if Message %> | <% else %> | ||
<p id="{$FormName}_error" class="message $MessageType">$Message</p> | <p id="{$FormName}_error" class="message $MessageType" style="display: none"></p> | ||
<% else %> | <% end_if %> | ||
<p id="{$FormName}_error" class="message $MessageType" style="display: none"></p> |
|
||
<% end_if %> | <fieldset> | ||
|
<% if Legend %><legend>$Legend</legend><% end_if %> | ||
<fieldset> | <% loop Fields %> | ||
<% if Legend %><legend>$Legend</legend><% end_if %> | $FieldHolder | ||
<% loop Fields %> | <% end_loop %> | ||
$FieldHolder | </fieldset> | ||
<% end_loop %> | |||
</fieldset> | |||
</div> | |||
|
|||
<div class="cms-content-actions south"> | |||
<% if Actions %> | |||
<div class="Actions"> | |||
<% loop Actions %> | |||
$Field | |||
<% end_loop %> | |||
</div> | </div> | ||
<% end_if %> |
|
||
</div> | <div class="cms-content-actions south"> | ||
|
<% if Actions %> | ||
</form> | <div class="Actions"> | ||
<% end_with %> | <% loop Actions %> | ||
$Field | |||
<% end_loop %> | |||
</div> | |||
<% end_if %> | |||
</div> | |||
</form> | |||
<% end_with %> | |||
</div> |