doctype html

div.wrapper(
    tg-user-change-password
    ng-controller="UserChangePasswordController as ctrl"
    ng-init="section='user-settings'"
)
    sidebar.menu-secondary.sidebar.settings-nav(tg-user-settings-navigation="change-password")
        include ../includes/modules/user-settings-menu

    section.main.user-change-password
        header
            h1
                span.green {{sectionName | translate}}

        form
            fieldset
                label(for="current-password", translate="CHANGE_PASSWORD.FIELD_CURRENT_PASSWORD")
                input(
                    type="password"
                    name="password"
                    id="current-password"
                    tg-capslock
                    ng-model="currentPassword"
                    placeholder="{{'CHANGE_PASSWORD.PLACEHOLDER_CURRENT_PASSWORD' | translate}}"
                )

            fieldset
                label(for="new-password", translate="CHANGE_PASSWORD.FIELD_NEW_PASSWORD")
                input(
                    data-required="true"
                    type="password"
                    name="new-password"
                    id="new-password"
                    tg-capslock
                    ng-model="newPassword1"
                    placeholder="{{'CHANGE_PASSWORD.PLACEHOLDER_NEW_PASSWORD' | translate}}"
               )

            fieldset
                label(for="retype-password", translate="CHANGE_PASSWORD.FIELD_RETYPE_PASSWORD")
                input(
                    data-required="true"
                    type="password"
                    name="retype-password"
                    id="retype-password"
                    tg-capslock
                    ng-model="newPassword2"
                    placeholder="{{'CHANGE_PASSWORD.PLACEHOLDER_RETYPE_PASSWORD' | translate}}"
                )

            fieldset
                button.button-green.submit-button(
                    type="submit"
                    title="{{'COMMON.SAVE' | translate}}"
                    translate="COMMON.SAVE"
                )
