Skip to content

Commit ffec2e7

Browse files
committed
refactoring update web templates
1 parent 5d30b67 commit ffec2e7

20 files changed

+839
-100
lines changed

web/js/templates.js

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ App.Templates.html = {
9494
</div>'],
9595
popup_rename: ['<div class="confirm-box rename warning">\
9696
<div class="message">'+App.Constants.FM_RENAME+': <span class="title">"~!:FILENAME~!"</span></div>\
97-
<!-- div class="warning">'+App.Constants.FM_FILE+' <span class="title">"reading.txt"</span> '+App.Constants.FM_ALREADY_EXISTS+'</div -->\
9897
<div class="warning warning-message"></div>\
9998
<div class="actions">\
10099
<input type="text" id="rename-title" class="new-title" value="~!:NEW_NAME~!" />\
@@ -109,6 +108,53 @@ App.Templates.html = {
109108
</div>\
110109
</div>'],
111110

111+
popup_chmod: ['<div class="confirm-box chmod warning">\
112+
<div class="message">'+App.Constants.FM_CHMOD+': <span class="title">"~!:FILENAME~!"</span></div>\
113+
<div class="warning warning-message"></div>\
114+
<div class="actions">\
115+
<ul>\
116+
<li><label><input type="checkbox" name="read-by-owner" value="1" ~!:READ_BY_OWNER~! /> '+App.Constants.FM_READ_BY_OWNER+'</label></li>\
117+
<li><label><input type="checkbox" name="write-by-owner" value="1" ~!:WRITE_BY_OWNER~! /> '+App.Constants.FM_WRITE_BY_OWNER+'</label></li>\
118+
<li><label><input type="checkbox" name="execute-by-owner" value="1" ~!:EXECUTE_BY_OWNER~! /> '+App.Constants.FM_EXECUTE_BY_OWNER+'</label></li>\
119+
</ul><ul>\
120+
<li><label><input type="checkbox" name="read-by-group" value="1" ~!:READ_BY_GROUP~! /> '+App.Constants.FM_READ_BY_GROUP+'</label></li>\
121+
<li><label><input type="checkbox" name="write-by-group" value="1" ~!:WRITE_BY_GROUP~! /> '+App.Constants.FM_WRITE_BY_GROUP+'</label></li>\
122+
<li><label><input type="checkbox" name="execute-by-group" value="1" ~!:EXECUTE_BY_GROUP~! /> '+App.Constants.FM_EXECUTE_BY_GROUP+'</label></li>\
123+
</ul><ul>\
124+
<li><label><input type="checkbox" name="read-by-others" value="1" ~!:READ_BY_OTHERS~! /> '+App.Constants.FM_READ_BY_OTHERS+'</label></li>\
125+
<li><label><input type="checkbox" name="write-by-others" value="1" ~!:WRITE_BY_OTHERS~! /> '+App.Constants.FM_WRITE_BY_OTHERS+'</label></li>\
126+
<li><label><input type="checkbox" name="execute-by-others" value="1" ~!:EXECUTE_BY_OTHERS~! /> '+App.Constants.FM_EXECUTE_BY_OTHERS+'</label></li>\
127+
</ul>\
128+
</div>\
129+
<div class="controls">\
130+
<p class="cancel" onClick="FM.popupClose();">'+App.Constants.FM_CANCEL+'</p>\
131+
<p class="ok" onClick="FM.confirmChmod();">'+App.Constants.FM_OK+'</p>\
132+
</div>\
133+
</div>'],
134+
popup_bulk_chmod: ['<div class="confirm-box chmod warning">\
135+
<div class="message">'+App.Constants.FM_CHMOD+' (~!:NUMBER_OF_ITEMS~!)</div>\
136+
<div class="warning warning-message"></div>\
137+
<div class="actions">\
138+
<ul>\
139+
<li><label><input type="checkbox" name="read-by-owner" value="1" checked /> '+App.Constants.FM_READ_BY_OWNER+'</label></li>\
140+
<li><label><input type="checkbox" name="write-by-owner" value="1" checked /> '+App.Constants.FM_WRITE_BY_OWNER+'</label></li>\
141+
<li><label><input type="checkbox" name="execute-by-owner" value="1" checked /> '+App.Constants.FM_EXECUTE_BY_OWNER+'</label></li>\
142+
</ul><ul>\
143+
<li><label><input type="checkbox" name="read-by-group" value="1" checked /> '+App.Constants.FM_READ_BY_GROUP+'</label></li>\
144+
<li><label><input type="checkbox" name="write-by-group" value="1" checked /> '+App.Constants.FM_WRITE_BY_GROUP+'</label></li>\
145+
<li><label><input type="checkbox" name="execute-by-group" value="1" checked /> '+App.Constants.FM_EXECUTE_BY_GROUP+'</label></li>\
146+
</ul><ul>\
147+
<li><label><input type="checkbox" name="read-by-others" value="1" checked /> '+App.Constants.FM_READ_BY_OTHERS+'</label></li>\
148+
<li><label><input type="checkbox" name="write-by-others" value="1" checked /> '+App.Constants.FM_WRITE_BY_OTHERS+'</label></li>\
149+
<li><label><input type="checkbox" name="execute-by-others" value="1" checked /> '+App.Constants.FM_EXECUTE_BY_OTHERS+'</label></li>\
150+
</ul>\
151+
</div>\
152+
<div class="controls">\
153+
<p class="cancel" onClick="FM.popupClose();">'+App.Constants.FM_CANCEL+'</p>\
154+
<p class="ok" onClick="FM.confirmBulkChmod();">'+App.Constants.FM_OK+'</p>\
155+
</div>\
156+
</div>'],
157+
112158
popup_pack: ['<div class="confirm-box pack warning">\
113159
<div class="message">'+App.Constants.FM_PACK+' <span class="title">"~!:FILENAME~!"</span></div>\
114160
<div class="actions">\

0 commit comments

Comments
 (0)