Commit fe321a5c authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

(user manager) add datepicker + small html style issues, closes...

(user manager) add datepicker + small html style issues, closes https://github.com/opnsense/core/issues/552

(cherry picked from commit 956a13f6)
parent 70d74423
...@@ -579,6 +579,7 @@ $( document ).ready(function() { ...@@ -579,6 +579,7 @@ $( document ).ready(function() {
}); });
}); });
$('.datepicker').datepicker();
}); });
</script> </script>
...@@ -664,10 +665,11 @@ $( document ).ready(function() { ...@@ -664,10 +665,11 @@ $( document ).ready(function() {
<tr> <tr>
<td><a id="help_for_expires" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Expiration date"); ?></td> <td><a id="help_for_expires" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Expiration date"); ?></td>
<td> <td>
<input name="expires" type="text" id="expires" size="10" value="<?=$pconfig['expires'];?>" /> <input name="expires" type="text" id="expires" class="datepicker" data-date-format="mm/dd/yyyy" value="<?=$pconfig['expires'];?>" />
<div class="hidden" for="help_for_expires"> <div class="hidden" for="help_for_expires">
<?=gettext("Leave blank if the account shouldn't expire, otherwise enter the expiration date in the following format: mm/dd/yyyy"); ?> <?=gettext("Leave blank if the account shouldn't expire, otherwise enter the expiration date in the following format: mm/dd/yyyy"); ?>
</div> </div>
</td>
</tr> </tr>
<tr> <tr>
<td><a id="help_for_groups" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Group Memberships");?></td> <td><a id="help_for_groups" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Group Memberships");?></td>
...@@ -855,7 +857,7 @@ $( document ).ready(function() { ...@@ -855,7 +857,7 @@ $( document ).ready(function() {
<?php // listtags always changes our key item to an array.. ?> <?php // listtags always changes our key item to an array.. ?>
<?php // don't want to change "key" to something less sane. ?> <?php // don't want to change "key" to something less sane. ?>
<?=$userApiKey['key'][0];?> <?=$userApiKey['key'][0];?>
<small> </small>
</td> </td>
<td> <td>
<button data-key="<?=$userApiKey['key'][0];?>" type="button" class="btn btn-default btn-xs act-del-api-key" <button data-key="<?=$userApiKey['key'][0];?>" type="button" class="btn btn-default btn-xs act-del-api-key"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment