2011-10-22 13:44:34 +00:00
|
|
|
<form id="external">
|
|
|
|
<fieldset class="personalblock">
|
|
|
|
<strong>External Sites</strong><br />
|
2012-03-02 20:32:17 +00:00
|
|
|
<ul class="external_sites">
|
2011-10-22 13:44:34 +00:00
|
|
|
|
2012-03-02 20:32:17 +00:00
|
|
|
<?php
|
|
|
|
$sites = OC_External::getSites();
|
|
|
|
for($i = 0; $i < sizeof($sites); $i++) {
|
|
|
|
echo '<li><input type="text" name="site_name[]" class="site_name" value="'.$sites[$i][0].'" placeholder="'.$l->t('Name').'" />
|
|
|
|
<input type="text" class="site_url" name="site_url[]" value="'.$sites[$i][1].'" placeholder="'.$l->t('URL').'" />
|
2012-05-06 21:00:36 +00:00
|
|
|
<img class="svg action delete_button" src="'.OCP\image_path("", "actions/delete.svg") .'" title="'.$l->t("Remove site").'" />
|
2012-03-02 20:32:17 +00:00
|
|
|
</li>';
|
|
|
|
}
|
|
|
|
?>
|
2011-10-22 13:44:34 +00:00
|
|
|
|
2012-03-02 20:32:17 +00:00
|
|
|
</ul>
|
|
|
|
|
|
|
|
<input type="button" id="add_external_site" value="Add" />
|
|
|
|
<span class="msg"></span>
|
2011-10-22 13:44:34 +00:00
|
|
|
</fieldset>
|
|
|
|
</form>
|