<form method="post" action="/forms/organizations/{{this.org.id}}/services/{{this.service.slug}}/" data-element="popup" data-id="{{fallback this.name "service"}}">
    <div class="{{#unless (or (is this.mode "user_limit") (empty this.service.user_limit))}}hidden {{/unless}}field">
        <label for="{{fallback this.name "service"}}.user_limit">{{i18n "service_details.form.user_limit"}}*</label>
        <input type="number" id="{{fallback this.name "service"}}.user_limit" name="user_limit<number>" value="{{this.service.user_limit}}" class="full-width" required>
    </div>
    <div class="{{#unless (or (is this.mode "expiration") (empty this.service.expires_at))}}hidden {{/unless}}field">
        <label for="{{fallback this.name "service"}}.expires_at">{{i18n "service_details.form.expires_at"}}*</label>
        <input type="date" id="{{fallback this.name "service"}}.expires_at" data-name="expires_at<date>" value="{{short_date this.service.expires_at}}" class="full-width" required>
    </div>
    <div class="field">
        <label for="{{fallback this.name "service"}}.comment">{{i18n "common.form.comment"}}*</label>
        <input type="text" id="{{fallback this.name "service"}}.comment" name="comment" class="full-width" required>
    </div>
    <div class="actions">
        <button type="submit" class="highlighted" data-action="ok">{{i18n "common.action.apply"}}</button>
        <label for="cancel_{{fallback this.name "service"}}" class="button" data-action="cancel">{{i18n "common.action.cancel"}}</label>
    </div>
    <input type="hidden" name="_method" value="patch">
</form>
