Yuki Takei 7 лет назад
Родитель
Сommit
8a0799ef22
2 измененных файлов с 4 добавлено и 8 удалено
  1. 3 7
      lib/views/_form.html
  2. 1 1
      resource/js/components/PageEditor/GrantSelector.js

+ 3 - 7
lib/views/_form.html

@@ -46,14 +46,10 @@
       </span>
       {% endif %}
 
-      {% if forceGrant %}
-      <input type="hidden" name="pageForm[grant]" value="{{ forceGrant }}">
-      {% else %}
-      <div>
-        <div id="page-grant-selector"></div>
-      </div>
+      <div id="page-grant-selector"></div>
+
       <input type="hidden" id="page-grant" name="pageForm[grant]" value="{{ pageForm.grant|default(page.grant) }}">
-      <input id="grant-group" type="hidden" value="{% if pageForm.grant %}{% endif %}">
+      <input type="hidden" id="grant-group" value="{% if pageForm.grant %}{% endif %}">
       <input type="hidden" id="edit-form-csrf" name="_csrf" value="{{ csrf() }}">
       <button type="submit" class="btn btn-primary btn-submit" id="edit-form-submit">{{ t('Update') }}</button>
     </div>

+ 1 - 1
resource/js/components/PageEditor/GrantSelector.js

@@ -190,7 +190,7 @@ class GrantSelector extends React.Component {
 
     let content = this.state.userRelatedGroups.length === 0
       ? <div>
-          <p>There is no group to which you belong.</p>
+          <h4>There is no group to which you belong.</h4>
           { this.props.crowi.isAdmin &&
             <p><a href="/admin/user-groups"><i className="icon icon-fw icon-login"></i> Manage Groups</a></p>
           }