histogram: Make histograms crash less
[ninja.git] / application / views / upload / index.php
blobb26af9e5f39bfc21ee87d9b4ce4505d13becb3e8
1 <?php defined('SYSPATH') or die('No direct script access.'); ?>
3 <div style="padding:30px">
4 <p>
5 <?php echo _('You may upload a new widget as long as you meet the requirements below.') ?><br /><br />
7 <ul class="upload_list">
8 <li><?php echo _('The widget must be a zip file') ?></li>
9 <li><?php echo _('It must contain all the required files') ?></li>
10 <li title="<?php echo _('Click to show info') ?>"><a href="" id="dummy_href"><?php echo _('It must contain a manifest file (xml)') ?></a></li>
11 </ul>
12 <div id="xml_info" style="display:none;padding-top:10px">
13 <?php echo _('The xml file should contain the following info:'); ?>
14 <pre>
16 &lt;?xml version="1.0" encoding="UTF-8"?&gt;
17 &lt;!-- Manifest file for widget to be used in Ninja4Nagios --&gt;
18 &lt;widget_content&gt;
19 &lt;author&gt;Your name&lt;/author&gt;
20 &lt;version&gt;1.0&lt;/version&gt;
21 &lt;Friendly_name&gt;Display name of the widget&lt;/Friendly_name&gt;
22 &lt;description&gt;Some info about your widget&lt;/description&gt; &lt;!-- (This info is not shown anywhere today) --&gt;
23 &lt;page&gt;tac/index&lt;/page&gt; &lt;!-- (only tac/index supported as of now) --&gt;
24 &lt;/widget_content&gt;
26 </pre>
27 <?php echo _('The xml file should be placed in the root of the widget folder') ?>
28 </div>
29 </p><br />
31 <?php echo _('Use the form below to upload and install a new widget:') ?><br /><br />
32 <?php
33 echo form::open_multipart('upload/handle_upload', array('id' => 'upload_form'));
34 echo form::upload(array('id' => 'upload_file', 'name' => 'upload_file', 'type' => 'file'))."<br /><br />";
35 echo form::submit('uploadbtn', 'Upload file');
36 echo form::close();
38 </div>