webogram-i2p/app/partials/desktop/profile_edit_modal.html

28 lines
1.2 KiB
HTML
Raw Normal View History

2014-04-05 16:07:41 +00:00
<div class="profile_edit_modal_wrap" my-modal-position>
<a class="modal-close-button" ng-click="$dismiss()"><i></i></a>
<div class="modal-body">
<form class="modal_simple_form" ng-submit="updateProfile()">
2014-09-16 16:12:52 +00:00
<h4 my-i18n="profile_edit_modal_title"></h4>
2014-04-05 16:07:41 +00:00
<div class="form-group import_modal_field_wrap" ng-class="{'has-error': error.field == 'first_name'}">
2014-09-16 16:12:52 +00:00
<input class="form-control input-sm" my-focused type="text" placeholder="{{'profile_edit_first_name' | i18n}}" ng-model="profile.first_name" name="first_name"/>
2014-04-05 16:07:41 +00:00
</div>
<div class="form-group import_modal_field_wrap" ng-class="{'has-error': error.field == 'last_name'}">
2014-09-16 16:12:52 +00:00
<input class="form-control input-sm" type="text" placeholder="{{'profile_edit_last_name' | i18n}}" ng-model="profile.last_name"/>
2014-04-05 16:07:41 +00:00
</div>
</form>
</div>
<div class="modal-footer">
2014-09-16 16:12:52 +00:00
<a class="btn btn-link" ng-click="$dismiss()" my-i18n="modal_cancel"></a>
<button class="btn btn-primary" ng-class="{disabled: profile.updating}" ng-click="updateProfile()" ng-bind="profile.updating ? 'profile_edit_submit_active' : 'profile_edit_submit' | i18n" ng-disabled="profile.updating"></button>
2014-04-05 16:07:41 +00:00
</div>
2014-09-16 16:12:52 +00:00
</div>