Revision 86860c5e snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/templates.js
b/snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/templates.js | ||
---|---|---|
185 | 185 |
var buffer = '', helper, options, helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression; |
186 | 186 |
|
187 | 187 |
|
188 |
data.buffer.push("<div class=\"buttons\">\n <a href=\"\" class=\"btn1 show-add-tag wrap-a\" id=\"show-add-tag\"><span>add new tag</span></a>\n</div>\n\n<div class=\"snf-color-picker\">\n <h3>Select color:</h3>\n <form action=\"#\" method=\"post\">\n <div id=\"picker-2\">\n <div class=\"farbtastic\">\n <div class=\"color\" style=\"background-color: rgb(255, 0, 21);\"></div>\n <div class=\"wheel\"></div>\n <div class=\"overlay\"></div>\n <div class=\"h-marker marker\" style=\"left: 90px; top: 13px;\"></div>\n <div class=\"sl-marker marker\" style=\"left: 87px; top: 114px;\"></div>\n </div>\n </div>\n \n <div class=\"form-item\">\n <input type=\"text\" id=\"color-2\" class=\"color-preview \"name=\"color\" value=\"#16C1E9\" disabled>\n <span class=\"input\">\n "); |
|
188 |
data.buffer.push("<div class=\"buttons\">\n <a href=\"\" class=\"btn1 show-add-tag wrap-a\" id=\"show-add-tag\"><span>add new tag</span></a>\n</div>\n\n<div class=\"snf-color-picker\">\n <h3>Select color:</h3>\n <form action=\"#\" method=\"post\">\n <div id=\"colorpicker\">\n <div class=\"farbtastic\">\n <div class=\"color\" style=\"background-color: rgb(255, 0, 21);\"></div>\n <div class=\"wheel\"></div>\n <div class=\"overlay\"></div>\n <div class=\"h-marker marker\" style=\"left: 90px; top: 13px;\"></div>\n <div class=\"sl-marker marker\" style=\"left: 87px; top: 114px;\"></div>\n </div>\n </div>\n \n <div class=\"form-item\">\n "); |
|
189 |
data.buffer.push(escapeExpression((helper = helpers.input || (depth0 && depth0.input),options={hash:{ |
|
190 |
'value': ("newTagColor"), |
|
191 |
'class': ("color-preview"), |
|
192 |
'type': ("text"), |
|
193 |
'id': ("color"), |
|
194 |
'disabled': ("disabled") |
|
195 |
},hashTypes:{'value': "ID",'class': "STRING",'type': "STRING",'id': "STRING",'disabled': "STRING"},hashContexts:{'value': depth0,'class': depth0,'type': depth0,'id': depth0,'disabled': depth0},contexts:[],types:[],data:data},helper ? helper.call(depth0, options) : helperMissing.call(depth0, "input", options)))); |
|
196 |
data.buffer.push("\n <span class=\"input\">\n "); |
|
189 | 197 |
data.buffer.push(escapeExpression((helper = helpers.input || (depth0 && depth0.input),options={hash:{ |
190 | 198 |
'value': ("newTagName"), |
191 | 199 |
'class': ("tag_name"), |
... | ... | |
231 | 239 |
Ember.TEMPLATES["components/resource-tags"] = Ember.Handlebars.template(function anonymous(Handlebars,depth0,helpers,partials,data) { |
232 | 240 |
this.compilerInfo = [4,'>= 1.0.0']; |
233 | 241 |
helpers = this.merge(helpers, Ember.Handlebars.helpers); data = data || {}; |
234 |
var buffer = '', stack1, escapeExpression=this.escapeExpression, self=this; |
|
235 |
|
|
236 |
function program1(depth0,data) { |
|
237 | 242 |
|
238 |
var buffer = '', stack1; |
|
239 |
data.buffer.push("\n<"); |
|
240 |
data.buffer.push(escapeExpression(helpers.unbound.call(depth0, "entryTag", {hash:{},hashTypes:{},hashContexts:{},contexts:[depth0],types:["ID"],data:data}))); |
|
241 |
data.buffer.push(">\n<a href=\"#\" "); |
|
242 |
data.buffer.push(escapeExpression(helpers['bind-attr'].call(depth0, {hash:{ |
|
243 |
'title': ("tag.name"), |
|
244 |
'style': ("style") |
|
245 |
},hashTypes:{'title': "ID",'style': "ID"},hashContexts:{'title': depth0,'style': depth0},contexts:[],types:[],data:data}))); |
|
246 |
data.buffer.push(" class=\"has-tip tag\"> </a>\n<span>"); |
|
247 |
stack1 = helpers._triageMustache.call(depth0, "tag.name", {hash:{},hashTypes:{},hashContexts:{},contexts:[depth0],types:["ID"],data:data}); |
|
248 |
if(stack1 || stack1 === 0) { data.buffer.push(stack1); } |
|
249 |
data.buffer.push("</span>\n<a class=\"delete\" "); |
|
250 |
data.buffer.push(escapeExpression(helpers.action.call(depth0, "deleteTag", {hash:{},hashTypes:{},hashContexts:{},contexts:[depth0],types:["STRING"],data:data}))); |
|
251 |
data.buffer.push(" title=\"remove this tag from this vm\"><span class=\"snf-trash-outline\"></span></a>\n</"); |
|
252 |
data.buffer.push(escapeExpression(helpers.unbound.call(depth0, "entryTag", {hash:{},hashTypes:{},hashContexts:{},contexts:[depth0],types:["ID"],data:data}))); |
|
253 |
data.buffer.push(">\n"); |
|
254 |
return buffer; |
|
255 |
} |
|
256 | 243 |
|
257 |
stack1 = helpers.each.call(depth0, "tag", "in", "tags", {hash:{},hashTypes:{},hashContexts:{},inverse:self.noop,fn:self.program(1, program1, data),contexts:[depth0,depth0,depth0],types:["ID","ID","ID"],data:data}); |
|
258 |
if(stack1 || stack1 === 0) { data.buffer.push(stack1); } |
|
259 |
data.buffer.push("\n"); |
|
260 |
return buffer; |
|
244 |
|
|
261 | 245 |
|
262 | 246 |
}); |
263 | 247 |
|
Also available in: Unified diff