Revision e2daba70

View differences:

src/sunstone/public/app/tabs/provision-tab/templates/list.js
316 316
        var template_name = $(".provision-title", ul_context).text();
317 317

  
318 318
        $(".provision_confirm_delete_template_div", context).html(
319
          '<div data-alert class="label secondary radius">'+
319
          '<div data-closable class="callout large secondary">'+
320 320
            '<div class="row">'+
321
            '<div class="large-8 columns">'+
322
              '<span>'+
323
                Locale.tr("The template")+
324
                ' "' + template_name + '" ' +
325
                Locale.tr("and the image associated will be shared and all the users will be able to instantiate new VMs using this template.") +
326
              '</span>'+
327
            '</div>'+
328
            '<div class="large-4 columns">'+
329
              '<a href"#" class="provision_chmod_template_button success button large-12 radius right" template_id="'+template_id+'">'+Locale.tr("Share template")+'</a>'+
321
              '<div class="large-12 columns">'+
322
                '<p>'+
323
                  Locale.tr("The template")+
324
                  ' "' + template_name + '" ' +
325
                  Locale.tr("and the image associated will be shared and all the users will be able to instantiate new VMs using this template.") +
326
                '</p>'+
327
              '</div>'+
328
              '<div class="large-12 columns">'+
329
                '<button href"#" class="provision_chmod_template_button success button right" template_id="'+template_id+'">'+Locale.tr("Share template")+'</button>'+
330
              '</div>'+
330 331
            '</div>'+
331
            '</div>'+
332
            '<a href="#" class="close">&times;</a>'+
332
            '<button class="close-button" aria-label="Dismiss alert" type="button" data-close>' +
333
              '<span aria-hidden="true">&times;</span>' +
334
            '</button>' +
333 335
          '</div>');
334 336
      });
335 337

  
......
362 364
        var template_name = $(".provision-title", ul_context).first().text();
363 365

  
364 366
        $(".provision_confirm_delete_template_div", context).html(
365
          '<div data-alert class="label secondary radius">'+
367
          '<div data-closable class="callout large secondary">'+
366 368
            '<div class="row">'+
367
            '<div class="large-8 columns">'+
368
              '<span>'+
369
                Locale.tr("The template")+
370
                ' "' + template_name + '" ' +
371
                Locale.tr("and the image associated will be unshared and the users will not be able to instantiate new VMs using this template.") +
372
              '</span>'+
373
            '</div>'+
374
            '<div class="large-4 columns">'+
375
              '<a href"#" class="provision_unshare_template_button success button large-12 radius right" template_id="'+template_id+'">'+Locale.tr("Unshare template")+'</a>'+
369
              '<div class="large-12 columns">'+
370
                '<p>'+
371
                  Locale.tr("The template")+
372
                  ' "' + template_name + '" ' +
373
                  Locale.tr("and the image associated will be unshared and the users will not be able to instantiate new VMs using this template.") +
374
                '</p>'+
375
              '</div>'+
376
              '<div class="large-12 columns">'+
377
                '<button href"#" class="provision_unshare_template_button success button right" template_id="'+template_id+'">'+Locale.tr("Unshare template")+'</button>'+
378
              '</div>'+
376 379
            '</div>'+
377
            '</div>'+
378
            '<a href="#" class="close">&times;</a>'+
380
            '<button class="close-button" aria-label="Dismiss alert" type="button" data-close>' +
381
              '<span aria-hidden="true">&times;</span>' +
382
            '</button>' +
379 383
          '</div>');
380 384
      });
381 385

  

Also available in: Unified diff