diff options
author | Andrew Dolgov <[email protected]> | 2011-04-20 15:53:50 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2011-04-20 15:53:50 +0400 |
commit | bf758124d2bec8977af8b735a4f9a949f24c6fcd (patch) | |
tree | de9359fa80e74dfd1f6eee730c8cfab41adaad29 /modules/popup-dialog.php | |
parent | 2b020009b1bd1e2c1e527c2adf94fe0fc780849b (diff) | |
parent | 9530efa1b506f4a0d64088ae30aec38ff27de331 (diff) |
backend: merge with shared-feedbrowser
Diffstat (limited to 'modules/popup-dialog.php')
-rw-r--r-- | modules/popup-dialog.php | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/modules/popup-dialog.php b/modules/popup-dialog.php index 2eb63af9d..6cb60eef4 100644 --- a/modules/popup-dialog.php +++ b/modules/popup-dialog.php @@ -992,6 +992,61 @@ print "</div>"; } + if ($id == "addInstance") { + + print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"op\" value=\"pref-instances\">"; + print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"subop\" value=\"add\">"; + + print "<div class=\"dlgSec\">".__("Instance")."</div>"; + + print "<div class=\"dlgSecCont\">"; + + /* URL */ + + print __("URL:") . " "; + + print "<input dojoType=\"dijit.form.ValidationTextBox\" required=\"1\" + placeHolder=\"".__("Instance URL")."\" + regExp='^(http|https)://.*' + style=\"font-size : 16px; width: 20em\" name=\"access_url\">"; + + print "<hr/>"; + + $access_key = sha1(uniqid(rand(), true)); + + /* Access key */ + + print __("Access key:") . " "; + + print "<input dojoType=\"dijit.form.ValidationTextBox\" required=\"1\" + placeHolder=\"".__("Access key")."\" regExp='\w{40}' + style=\"width: 20em\" name=\"access_key\" id=\"instance_add_key\" + value=\"$access_key\">"; + + print "<p class='insensitive'>" . __("Use one access key for both linked instances."); + + print "</div>"; + + print "<div class=\"dlgButtons\"> + <div style='float : left'> + <button dojoType=\"dijit.form.Button\" + onclick=\"return dijit.byId('instanceAddDlg').regenKey()\">". + __('Generate new key')."</button> + </div> + <button dojoType=\"dijit.form.Button\" + onclick=\"return dijit.byId('instanceAddDlg').execute()\">". + __('Create link')."</button> + <button dojoType=\"dijit.form.Button\" + onclick=\"return dijit.byId('instanceAddDlg').hide()\"\">". + __('Cancel')."</button></div>"; + + return; + + + + + } + print "</dlg>"; } ?> |