Skip to content

Commit

Permalink
display form errors
Browse files Browse the repository at this point in the history
  • Loading branch information
lunika committed Apr 27, 2015
1 parent 397b0e6 commit b9deade
Showing 1 changed file with 10 additions and 18 deletions.
28 changes: 10 additions & 18 deletions AdminIncludes/module_configuration.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,3 @@
<div class="modal fade" id="yo-failed" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">

<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
<h3>{intl d='yot.ai' l="An error occured"}</h3>
</div>
<div class="modal-body" id="yo-failed-body">

</div>
</div>
</div>
</div>


<div class="general-block-decorator">
<div class="row">

Expand All @@ -30,20 +14,28 @@ <h3>{intl d='yot.ai' l="An error occured"}</h3>
{form_hidden_fields form=$form}

{form_field form=$form field='api_key'}
<div class="form-group ">
<div class="form-group {if $error}has-error{/if}">
<label class="control-label" for="{$label_attr.for}">
{$label}
<span class="required">*</span>
{form_error form=$form field="api_key"}
<br />
<span class="error">{$message}</span>
{/form_error}
</label>
<input id="yo_config-id-api_key" class="form-control " type="text" required="" aria-required="true" value="{$value}" name="{$name}">
</div>
{/form_field}

{form_field form=$form field='username'}
<div class="form-group ">
<div class="form-group {if $error}has-error{/if}">
<label class="control-label" for="{$label_attr.for}">
{$label}
<span class="required">*</span>
{form_error form=$form field="username"}
<br />
<span class="error">{$message}</span>
{/form_error}
</label>
<input id="yo_config-id-username" class="form-control " type="text" required="" aria-required="true" value="{$value}" name="{$name}">
</div>
Expand Down

0 comments on commit b9deade

Please sign in to comment.