Explorar o código

fix #331: The checkbox for invite user with email doesn't work

Yuki Takei %!s(int64=8) %!d(string=hai) anos
pai
achega
5539ca8291
Modificáronse 2 ficheiros con 6 adicións e 5 borrados
  1. 3 4
      lib/views/admin/users.html
  2. 3 1
      lib/views/widget/page_tabs.html

+ 3 - 4
lib/views/admin/users.html

@@ -47,10 +47,9 @@
             <label for="inviteForm[emailList]">メールアドレス (複数行入力で複数人招待可能)</label>
             <textarea class="form-control" name="inviteForm[emailList]" placeholder="例: user@crowi.wiki"></textarea>
           </div>
-          <div class="checkbox">
-            <label>
-              <input type="checkbox" name="inviteForm[sendEmail]" checked> 招待をメールで送信
-            </label>
+          <div class="checkbox checkbox-info">
+            <input type="checkbox" id="inviteWithEmail" name="inviteForm[sendEmail]" checked>
+            <label for="inviteWithEmail">招待をメールで送信</label>
           </div>
           <button type="submit" class="btn btn-primary">招待する</button>
         </div>

+ 3 - 1
lib/views/widget/page_tabs.html

@@ -50,7 +50,9 @@
   {% endif %}
 
   <li class="nav-main-right-tab pull-right"><a href="#revision-history" data-toggle="tab"><i class="icon-layers"></i> History</a></li>
-  <li class="nav-main-right-tab pull-right"><a href="?presentation=1" class="toggle-presentation"><i class="icon-film"></i> {{ t('Presentation Mode') }}</a></li>
+  {% if not isPortal %}
+    <li class="nav-main-right-tab pull-right"><a href="?presentation=1" class="toggle-presentation"><i class="icon-film"></i> {{ t('Presentation Mode') }}</a></li>
+  {% endif %}
 
 </ul>