.modal-dialog
  .modal-content
    .modal-header
      button.close(data-dismiss='modal', aria-hidden='true', type='button') &times;
      h4.modal-title
        = title

    .modal-body
      .g-hierarchy-root-container.form-group
      .g-hierarchy-widget-container.g-wait-for-root.form-group.hidden
      .help-block.g-wait-for-root.hidden
        = help
      if preview
        .g-selected-model.g-wait-for-root.form-group.hidden
          label(for='g-selected-model').control-label Selected id
          input#g-selected-model.form-control(type='text' readonly)
      .g-validation-failed-message.hidden

    .modal-footer
      a.btn.btn-small.btn-default(data-dismiss='modal') Cancel
      button.g-submit-button.btn.btn-small.btn-primary(type='submit')
        i.icon-edit
        = submit
