#325 Validate create status modal

merge-requests/2/head
Mike Koch 9 years ago
parent 7647b4d559
commit 77fd639c5a

@ -446,7 +446,7 @@ function buildCreateModal()
aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<form action="manage_statuses.php" role="form" method="post" class="form-horizontal">
<form action="manage_statuses.php" role="form" method="post" class="form-horizontal" data-toggle="validator">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
aria-hidden="true">&times;</span></button>
@ -470,7 +470,9 @@ function buildCreateModal()
<div class="col-sm-9">
<input type="text" placeholder="<?php echo htmlspecialchars($language); ?>"
class="form-control" name="name[<?php echo $language; ?>]">
data-error="<?php echo htmlspecialchars($hesklang['this_field_is_required']); ?>"
class="form-control" name="name[<?php echo $language; ?>]" required>
<div class="help-block with-errors"></div>
</div>
</div>
<?php endforeach; ?>
@ -490,7 +492,9 @@ function buildCreateModal()
<div class="col-sm-8">
<input type="text" name="text-color" class="form-control"
placeholder="<?php echo htmlspecialchars($hesklang['textColor']); ?>">
data-error="<?php echo htmlspecialchars($hesklang['this_field_is_required']); ?>"
placeholder="<?php echo htmlspecialchars($hesklang['textColor']); ?>" required>
<div class="help-block with-errors"></div>
</div>
</div>
<div class="form-group">

Loading…
Cancel
Save