SSOwat/portal/edit.html

84 lines
3.4 KiB
HTML
Raw Normal View History

2013-10-21 20:43:12 +02:00
<form class="form-horizontal" role="form" method="POST" action="edit.html">
<div class="form-group">
2014-05-12 14:32:56 +02:00
<label for="uid" class="col-sm-3 control-label">{{t_username}}</label>
2013-10-21 20:43:12 +02:00
<div class="col-sm-9">
<input type="text" name="uid" class="form-control" value="{{uid}}" disabled>
</div>
</div>
<div class="form-group">
2014-05-12 14:32:56 +02:00
<label for="givenName" class="col-sm-3 control-label">{{t_fullname}}</label>
2013-10-21 20:43:12 +02:00
<div class="clearfix visible-xs"></div>
<div class="col-sm-4 col-xs-6">
<input type="text" name="givenName" class="form-control" value="{{givenName}}" required>
</div>
<div class="col-sm-5 col-xs-6">
<input type="text" name="sn" class="form-control" value="{{sn}}" required>
</div>
</div>
<hr>
<div class="form-group">
2014-05-12 14:32:56 +02:00
<label for="mail" class="col-sm-3 control-label">{{t_mail}}</label>
2013-10-21 20:43:12 +02:00
<div class="col-sm-9">
<input type="email" name="mail" class="form-control" value="{{mail}}" required>
</div>
</div>
<hr>
<div class="row">
2014-05-12 14:32:56 +02:00
<div class="col-sm-3 text-right hidden-xs"><strong>{{t_aliases}}</strong></div>
<div class="col-sm-3 text-left visible-xs"><h4>{{t_aliases}}</h4></div>
2013-10-21 20:43:12 +02:00
<div class="col-sm-9">
<blockquote>
{{#mailalias}}
<input type="email" name="mailalias[]" class="form-control" value="{{.}}">
<br>
{{/mailalias}}
2014-05-12 14:32:56 +02:00
<input type="email" name="mailalias[]" class="form-control mailalias-input" placeholder="{{t_newalias}}">
2013-10-21 20:43:12 +02:00
<div class="text-center" style="display: none;" id="add-mailalias"><a class="btn btn-success"><strong>+</strong></a></div>
<div class="clearfix"></div>
</blockquote>
</div>
</div>
<hr>
<div class="row">
2014-05-12 14:32:56 +02:00
<div class="col-sm-3 text-right hidden-xs"><strong>{{t_forward}}</strong></div>
<div class="col-sm-3 text-left visible-xs"><h4>{{t_forward}}</h4></div>
2013-10-21 20:43:12 +02:00
<div class="col-sm-9">
<blockquote>
{{#maildrop}}
<input type="email" name="maildrop[]" class="form-control" value="{{.}}">
<br>
{{/maildrop}}
2014-05-12 14:32:56 +02:00
<input type="email" name="maildrop[]" class="form-control maildrop-input" placeholder="{{t_newforward}}">
2013-10-21 20:43:12 +02:00
<div class="text-center" style="display: none;" id="add-maildrop"><a class="btn btn-success"><strong>+</strong></a></div>
<div class="clearfix"></div>
</blockquote>
</div>
</div>
<hr>
<div class="row">
<div class="col-sm-6 text-center">
2014-05-12 14:32:56 +02:00
<input type="submit" class="btn btn-lg btn-primary" value="{{t_ok}}">
2013-10-21 20:43:12 +02:00
</div>
<div class="visible-xs" style="height: 20px"></div>
<div class="col-sm-6 text-center">
2014-05-12 14:32:56 +02:00
<a href="info.html" class="btn btn-lg btn-default">{{t_cancel}}</a>
2013-10-21 20:43:12 +02:00
</div>
</div>
</form>
<script type="text/javascript">
$( document ).ready(function() {
$("#add-mailalias").show();
$("#add-maildrop").show();
$(".mailalias-input").hide();
$(".maildrop-input").hide();
$("#add-mailalias a").on("click", function() {
$("#add-mailalias").before($(".mailalias-input:first").clone().show());
$("#add-mailalias").before("<br><br>");
});
$("#add-maildrop a").on("click", function() {
$("#add-maildrop").before($(".maildrop-input:first").clone().show());
$("#add-maildrop").before("<br><br>");
});
});
</script>