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

29 lines
1.2 KiB
HTML
Raw Normal View History

<div class="md_simple_modal_wrap" my-modal-position>
2014-04-05 16:07:41 +00:00
<div class="md_simple_modal_body">
2014-04-05 16:07:41 +00:00
<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="md-input-group" ng-class="{'has-error': error.field == 'first_name'}" my-labeled-input>
<label class="md-input-label" my-i18n="profile_edit_first_name"></label>
<input class="md-input" my-focused type="text" ng-model="profile.first_name" />
2014-04-05 16:07:41 +00:00
</div>
<div class="md-input-group" ng-class="{'has-error': error.field == 'last_name'}" my-labeled-input>
<label class="md-input-label" my-i18n="profile_edit_last_name"></label>
<input class="md-input" type="text" ng-model="profile.last_name" />
2014-04-05 16:07:41 +00:00
</div>
</form>
</div>
<div class="md_simple_modal_footer">
<button class="btn btn-md" ng-click="$dismiss()" my-i18n="modal_cancel"></button>
<button class="btn btn-md btn-md-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>