瀏覽代碼

Merge branch 'master' of github.com:tracim/tracim

Bastien Sevajol (Algoo) 7 年之前
父節點
當前提交
7b5c6e9f2d

+ 8 - 0
tracim/tracim/public/assets/css/dashboard.css 查看文件

@@ -390,3 +390,11 @@ span.info.readonly {
390 390
 .threads-history-reverse > i {
391 391
   font-size: 12px;
392 392
 }
393
+
394
+.user-edit-form__calendar__url {
395
+  padding: 8px 15px;
396
+  border: 1px solid #ccc;
397
+  border-radius: 4px;
398
+  background-color: #eee;
399
+  color: #555;
400
+}

+ 1 - 0
tracim/tracim/public/assets/js/main.js 查看文件

@@ -13,4 +13,5 @@ $(document).ready(function () {
13 13
       }
14 14
     })
15 15
   }
16
+
16 17
 })

+ 6 - 0
tracim/tracim/templates/user_edit_me.mak 查看文件

@@ -5,3 +5,9 @@
5 5
 
6 6
 ${FORMS.USER_EDIT_FORM('user-edit-form', result.user, tg.url('/user/{}?_method=PUT'.format(result.user.id)), next_url=fake_api.next_url)}
7 7
 
8
+<script type="text/javascript">
9
+  // add select2 for timezone in user edit profile modale
10
+  $('#timezone').select2({
11
+    dropdownParent: $("#user-edit-form") // this is a workaround to make select works inside bootstrap modal
12
+  })
13
+</script>

+ 3 - 3
tracim/tracim/templates/user_workspace_forms.mak 查看文件

@@ -57,7 +57,7 @@
57 57
                 <span class="pull-right t-modal-form-submit-button">
58 58
                     <button id="${dom_id}-submit-button" type="submit" class="btn btn-small btn-success" title="${_('Create this page')}"><i class=" fa fa-check"></i> ${_('Validate')}</button>
59 59
                 </span>
60
-                
60
+
61 61
                 <div style="clear: both;"></div>
62 62
             </form>
63 63
         </div>
@@ -80,7 +80,7 @@
80 80
                 <span class="pull-right t-modal-form-submit-button">
81 81
                     <button id="${dom_id}-submit-button" type="submit" class="btn btn-small btn-success" title="${_('Create this page')}"><i class=" fa fa-check"></i> ${_('Validate')}</button>
82 82
                 </span>
83
-                
83
+
84 84
                 <div style="clear: both;"></div>
85 85
             </form>
86 86
         </div>
@@ -113,7 +113,7 @@
113 113
             <div class="form-group">
114 114
                 <label for="calendar">${_('Personal calendar')}</label>
115 115
                 <span class="info readonly">${_('This calendar URL will work with CalDav compatibles clients')}</span>
116
-                <input id="calendar" type="text" class="form-control"  disabled="disabled" value="${user.calendar_url}" />
116
+                <div class="user-edit-form__calendar__url">${user.calendar_url}</div>
117 117
             </div>
118 118
             <div class="form-group">
119 119
                 <label for="timezone">${_('Timezone')}</label>