mirror of
https://github.com/unraid/webgui.git
synced 2026-05-01 23:39:21 -05:00
Apply button disabled by default
This commit is contained in:
@@ -4,8 +4,8 @@ Icon="apple-logo.png"
|
||||
Tag="apple"
|
||||
---
|
||||
<?PHP
|
||||
/* Copyright 2005-2017, Lime Technology
|
||||
* Copyright 2012-2017, Bergware International.
|
||||
/* Copyright 2005-2018, Lime Technology
|
||||
* Copyright 2012-2018, Bergware International.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License version 2,
|
||||
@@ -36,7 +36,7 @@ Connected users:
|
||||
endif;?>
|
||||
|
||||
|
||||
: <input type="submit" name="changeShare" value="Apply"><input type="button" value="Done" onclick="done()">
|
||||
: <input type="submit" name="changeShare" value="Apply" disabled><input type="button" value="Done" onclick="done()">
|
||||
</form>
|
||||
|
||||
> ### Overview
|
||||
|
||||
@@ -4,8 +4,8 @@ Tag="upload"
|
||||
Cond="((isset($disks['cache']))&&($disks['cache']['status']!='DISK_NP'))"
|
||||
---
|
||||
<?PHP
|
||||
/* Copyright 2005-2017, Lime Technology
|
||||
* Copyright 2012-2017, Bergware International.
|
||||
/* Copyright 2005-2018, Lime Technology
|
||||
* Copyright 2012-2018, Bergware International.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License version 2,
|
||||
@@ -15,7 +15,6 @@ Cond="((isset($disks['cache']))&&($disks['cache']['status']!='DISK_NP'))"
|
||||
* all copies or substantial portions of the Software.
|
||||
*/
|
||||
?>
|
||||
|
||||
<? $disabled = $var['fsState']!='Stopped' ? 'disabled' : ''; ?>
|
||||
|
||||
<script>
|
||||
@@ -61,5 +60,5 @@ Min. free space:
|
||||
> **2000000** => 2,048,000,000 bytes
|
||||
|
||||
|
||||
: <input type="submit" name="changeShare" value="Apply" <?=$disabled?>><input type="button" value="Done" onclick="done()"><?if ($disabled):?>Array must be <span class="strong big">Stopped</span> to change<?endif;?>
|
||||
: <input type="submit" name="changeShare" value="Apply" disabled><input type="button" value="Done" onclick="done()"><?if ($disabled):?>Array must be <span class="strong big">Stopped</span> to change<?endif;?>
|
||||
</form>
|
||||
|
||||
@@ -4,8 +4,8 @@ Icon="confirmations.png"
|
||||
Tag="check-square"
|
||||
---
|
||||
<?PHP
|
||||
/* Copyright 2005-2017, Lime Technology
|
||||
* Copyright 2012-2017, Bergware International.
|
||||
/* Copyright 2005-2018, Lime Technology
|
||||
* Copyright 2012-2018, Bergware International.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License version 2,
|
||||
@@ -44,5 +44,5 @@ Confirm sleep command:
|
||||
<?endif;?>
|
||||
|
||||
|
||||
: <input type="submit" name="#apply" value="Apply"><input type="button" value="Done" onclick="done()">
|
||||
: <input type="submit" name="#apply" value="Apply" disabled><input type="button" value="Done" onclick="done()">
|
||||
</form>
|
||||
|
||||
@@ -4,8 +4,8 @@ Icon="date-time.png"
|
||||
Tag="clock-o"
|
||||
---
|
||||
<?PHP
|
||||
/* Copyright 2005-2017, Lime Technology
|
||||
* Copyright 2012-2017, Bergware International.
|
||||
/* Copyright 2005-2018, Lime Technology
|
||||
* Copyright 2012-2018, Bergware International.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License version 2,
|
||||
@@ -68,7 +68,7 @@ New date and time:
|
||||
> Enter the current time-of-day. Use format YYYY-MM-DD HH:MM:SS. Greyed out when using NTP.
|
||||
|
||||
|
||||
: <input type="submit" name="setDateTime" value="Apply"><input type="button" value="Done" onclick="done()">
|
||||
: <input type="submit" name="setDateTime" value="Apply" disabled><input type="button" value="Done" onclick="done()">
|
||||
</form>
|
||||
|
||||
<script>
|
||||
|
||||
@@ -3,8 +3,8 @@ Title="$name Settings"
|
||||
Tag="hdd-o"
|
||||
---
|
||||
<?PHP
|
||||
/* Copyright 2005-2017, Lime Technology
|
||||
* Copyright 2012-2017, Bergware International.
|
||||
/* Copyright 2005-2018, Lime Technology
|
||||
* Copyright 2012-2018, Bergware International.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License version 2,
|
||||
@@ -275,7 +275,7 @@ Critical disk utilization threshold (%):
|
||||
|
||||
<?endif;?>
|
||||
|
||||
: <input type="submit" name="changeDisk" value="Apply"><input type="button" value="Done" onclick="done()">
|
||||
: <input type="submit" name="changeDisk" value="Apply" disabled><input type="button" value="Done" onclick="done()">
|
||||
</form>
|
||||
|
||||
<?if (strpos($disk['fsType'],"btrfs")!==false):?>
|
||||
@@ -598,5 +598,5 @@ SMART attribute notifications:
|
||||
> Each disk may have its own specific setting overruling the 'default' setting (see global SMART settings under Disk Settings).
|
||||
|
||||
<input type="submit" name="#default" value="Default">
|
||||
: <input type="submit" name="#apply" value="Apply"><input type="button" value="Done" onclick="done()">
|
||||
: <input type="submit" name="#apply" value="Apply" disabled><input type="button" value="Done" onclick="done()">
|
||||
</form>
|
||||
|
||||
@@ -4,8 +4,8 @@ Tag="user-circle-o"
|
||||
Cond="$var['fsState']!='Stopped' && $var['shareDisk']!='no'"
|
||||
---
|
||||
<?PHP
|
||||
/* Copyright 2005-2017, Lime Technology
|
||||
* Copyright 2012-2017, Bergware International.
|
||||
/* Copyright 2005-2018, Lime Technology
|
||||
* Copyright 2012-2018, Bergware International.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License version 2,
|
||||
|
||||
@@ -4,8 +4,8 @@ Icon="disk-settings.png"
|
||||
Tag="database"
|
||||
---
|
||||
<?PHP
|
||||
/* Copyright 2005-2017, Lime Technology
|
||||
* Copyright 2012-2017, Bergware International.
|
||||
/* Copyright 2005-2018, Lime Technology
|
||||
* Copyright 2012-2018, Bergware International.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License version 2,
|
||||
@@ -221,7 +221,7 @@ Default critical disk temperature threshold (°<?=$display['unit']?>):
|
||||
> A value of zero will disable the critical threshold (including notifications).
|
||||
|
||||
|
||||
: <input type="submit" name="changeDisk" value="Apply"><input type="button" value="Done" onclick="done()">
|
||||
: <input type="submit" name="changeDisk" value="Apply" disabled><input type="button" value="Done" onclick="done()">
|
||||
</form>
|
||||
|
||||
<div id="title"><span class="left"><i class="title fa fa-plus-square"></i>Global SMART Settings</span></div>
|
||||
@@ -293,5 +293,5 @@ Default SMART attribute notifications:
|
||||
> This section is used to set the global settings for all disks. It is possible to adjust settings for individual disks.
|
||||
|
||||
<input type="submit" name="#default" value="Default">
|
||||
: <input type="submit" name="#apply" value="Apply"><input type="button" value="Done" onclick="done()">
|
||||
: <input type="submit" name="#apply" value="Apply" disabled><input type="button" value="Done" onclick="done()">
|
||||
</form>
|
||||
|
||||
@@ -4,8 +4,8 @@ Icon="display-settings.png"
|
||||
Tag="desktop"
|
||||
---
|
||||
<?PHP
|
||||
/* Copyright 2005-2017, Lime Technology
|
||||
* Copyright 2012-2017, Bergware International.
|
||||
/* Copyright 2005-2018, Lime Technology
|
||||
* Copyright 2012-2018, Bergware International.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License version 2,
|
||||
@@ -260,5 +260,5 @@ Temperature unit:
|
||||
> Make sure any newly entered values represent the selected temperature unit.
|
||||
|
||||
<input type="submit" name="#default" value="Default" onclick="filename='reset'">
|
||||
: <input type="submit" name="#apply" value="Apply"><input type="button" value="Done" onclick="done()">
|
||||
: <input type="submit" name="#apply" value="Apply" disabled><input type="button" value="Done" onclick="done()">
|
||||
</form>
|
||||
|
||||
@@ -3,8 +3,8 @@ Title="Interface eth0"
|
||||
Tag="tag"
|
||||
---
|
||||
<?PHP
|
||||
/* Copyright 2005-2017, Lime Technology
|
||||
* Copyright 2012-2017, Bergware International.
|
||||
/* Copyright 2005-2018, Lime Technology
|
||||
* Copyright 2012-2018, Bergware International.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License version 2,
|
||||
@@ -898,5 +898,5 @@ IPv6 privacy extensions:
|
||||
</script>
|
||||
|
||||
|
||||
: <input type="submit" value="Apply" onclick="$('#wait_eth0').show()"><input type="button" value="Done" onclick="done()"><?=$service ? "$service must be <span class='strong big'>Stopped</span> to change (see Settings)" : ""?>
|
||||
: <input type="submit" value="Apply" onclick="$('#wait_eth0').show()" disabled><input type="button" value="Done" onclick="done()"><?=$service ? "$service must be <span class='strong big'>Stopped</span> to change (see Settings)" : ""?>
|
||||
</form>
|
||||
|
||||
@@ -3,8 +3,8 @@ Title="Interface ethX"
|
||||
Tag="tag"
|
||||
---
|
||||
<?PHP
|
||||
/* Copyright 2005-2017, Lime Technology
|
||||
* Copyright 2012-2017, Bergware International.
|
||||
/* Copyright 2005-2018, Lime Technology
|
||||
* Copyright 2012-2018, Bergware International.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License version 2,
|
||||
@@ -504,5 +504,5 @@ IPv6 privacy extensions:
|
||||
</script>
|
||||
|
||||
|
||||
: <input type="submit" value="Apply" onclick="$(waitid).show()"><input type="button" value="Done" onclick="done()"><input type="button" name="#shut_ethX" value="Port <?=$cmd?>" onclick="portToggle('ethX','<?=$cmd?>')"><?=$service ? "$service must be <span class='strong big'>Stopped</span> to change (see Settings)" : ""?>
|
||||
: <input type="submit" value="Apply" onclick="$(waitid).show()" disabled><input type="button" value="Done" onclick="done()"><input type="button" name="#shut_ethX" value="Port <?=$cmd?>" onclick="portToggle('ethX','<?=$cmd?>')"><?=$service ? "$service must be <span class='strong big'>Stopped</span> to change (see Settings)" : ""?>
|
||||
</form>
|
||||
|
||||
@@ -4,8 +4,8 @@ Icon="ftp-server.png"
|
||||
Tag="globe"
|
||||
---
|
||||
<?PHP
|
||||
/* Copyright 2005-2017, Lime Technology
|
||||
* Copyright 2012-2017, Bergware International.
|
||||
/* Copyright 2005-2018, Lime Technology
|
||||
* Copyright 2012-2018 Bergware International.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License version 2,
|
||||
@@ -52,7 +52,7 @@ FTP user(s):
|
||||
> **Note:** do not enter user name `root` since this may cause problems in the future.
|
||||
|
||||
|
||||
: <input type="submit" value="Apply"><input type="button" value="Done" onclick="done()">
|
||||
: <input type="submit" value="Apply" disabled><input type="button" value="Done" onclick="done()">
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@ Icon="ident.png"
|
||||
Tag="id-badge"
|
||||
---
|
||||
<?PHP
|
||||
/* Copyright 2005-2017, Lime Technology
|
||||
* Copyright 2012-2017, Bergware International.
|
||||
/* Copyright 2005-2018, Lime Technology
|
||||
* Copyright 2012-2018, Bergware International.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License version 2,
|
||||
@@ -43,7 +43,7 @@ Model:
|
||||
> This is the server model number.
|
||||
|
||||
|
||||
: <input type="submit" name="changeNames" value="Apply" <?=$disabled?>><input type="button" value="Done" onclick="done()"><?if ($disabled):?>Array must be <span class="strong big">Stopped</span> to change<?endif;?>
|
||||
: <input type="submit" name="changeNames" value="Apply" disabled><input type="button" value="Done" onclick="done()"><?if ($disabled):?>Array must be <span class="strong big">Stopped</span> to change<?endif;?>
|
||||
</form>
|
||||
<script>
|
||||
$("#NAME").keypress(function(event) {
|
||||
|
||||
@@ -3,8 +3,8 @@ Title="Mover Settings"
|
||||
Tag="calendar-check-o"
|
||||
---
|
||||
<?PHP
|
||||
/* Copyright 2005-2017, Lime Technology
|
||||
* Copyright 2012-2017, Bergware International.
|
||||
/* Copyright 2005-2018, Lime Technology
|
||||
* Copyright 2012-2018, Bergware International.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License version 2,
|
||||
@@ -118,7 +118,7 @@ Mover logging:
|
||||
> Write mover messages to the syslog file.
|
||||
|
||||
|
||||
: <input type="submit" name="changeMover" value="Apply"><input type="button" value="Done" onclick="done()">
|
||||
: <input type="submit" name="changeMover" value="Apply" disabled><input type="button" value="Done" onclick="done()">
|
||||
|
||||
<?if ($var['shareCacheEnabled']=="yes" && is_dir("/mnt/cache")):?>
|
||||
|
||||
|
||||
@@ -4,8 +4,8 @@ Icon="linux-logo.png"
|
||||
Tag="linux"
|
||||
---
|
||||
<?PHP
|
||||
/* Copyright 2005-2017, Lime Technology
|
||||
* Copyright 2012-2017, Bergware International.
|
||||
/* Copyright 2005-2018, Lime Technology
|
||||
* Copyright 2012-2018, Bergware International.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License version 2,
|
||||
@@ -59,5 +59,5 @@ Tunable (fuse_remember):
|
||||
> files/directories you access via NFS this may or may not lead to out-of-memory conditions.
|
||||
|
||||
|
||||
: <input type="submit" name="changeShare" value="Apply"><input type="button" value="Done" onclick="done()">
|
||||
: <input type="submit" name="changeShare" value="Apply" disabled><input type="button" value="Done" onclick="done()">
|
||||
</form>
|
||||
@@ -4,8 +4,8 @@ Tag="tags"
|
||||
Cond="file_exists('/boot/config/network-rules.cfg')"
|
||||
---
|
||||
<?PHP
|
||||
/* Copyright 2017, Lime Technology
|
||||
* Copyright 2017, Bergware International.
|
||||
/* Copyright 2018, Lime Technology
|
||||
* Copyright 2018, Bergware International.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License version 2,
|
||||
@@ -70,7 +70,7 @@ Interface <?=$eth?>:
|
||||
<?endforeach;?>
|
||||
|
||||
|
||||
: <input type="submit" value="Apply"><input type="button" value="Done" onclick="done()">
|
||||
: <input type="submit" value="Apply" disabled><input type="button" value="Done" onclick="done()">
|
||||
</form>
|
||||
|
||||
> The interface assignment rules can be changed here and might be necessary to set the preferred interface for managing unRAID - *use with care, usually there is no need to change*.
|
||||
|
||||
@@ -2,6 +2,18 @@ Menu="Notifications:3"
|
||||
Title="Notification Agents"
|
||||
Tag="rss-square"
|
||||
---
|
||||
<?PHP
|
||||
/* Copyright 2005-2018, Lime Technology
|
||||
* Copyright 2012-2018, Bergware International.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License version 2,
|
||||
* as published by the Free Software Foundation.
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*/
|
||||
?>
|
||||
<script>
|
||||
var scripts = new Object();
|
||||
var enabledAgents = new Object();
|
||||
@@ -135,7 +147,7 @@ foreach ($xml->Agent as $agent) {
|
||||
echo '</dd></dl>';
|
||||
if ($vHelp) echo '<blockquote class="inline_help">'.$vHelp.'</blockquote>';
|
||||
}
|
||||
echo '<dl><dt> </dt><dd><input type="submit" value="Apply" onclick="prepareService(this, \''.$name.'\')">';
|
||||
echo '<dl><dt> </dt><dd><input type="submit" value="Apply" onclick="prepareService(this, \''.$name.'\')" disabled>';
|
||||
echo '<input type="button" value="Done" onclick="done()">';
|
||||
if (is_file($file)) {
|
||||
echo '<input type="button" value="Delete" onclick="execCmd(\'delete\',\''.$name.'\')">';
|
||||
|
||||
@@ -5,8 +5,8 @@ Icon="notifications.png"
|
||||
Tag="phone-square"
|
||||
---
|
||||
<?PHP
|
||||
/* Copyright 2005-2017, Lime Technology
|
||||
* Copyright 2012-2017, Bergware International.
|
||||
/* Copyright 2005-2018, Lime Technology
|
||||
* Copyright 2012-2018, Bergware International.
|
||||
* Copyright 2012, Andrew Hamer-Adams, http://www.pixeleyes.co.nz.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
@@ -266,5 +266,5 @@ Notification entity:
|
||||
> Choose for each classification how you want to be notified.
|
||||
|
||||
<input type="submit" name="#default" value="Default">
|
||||
: <input type="submit" name="#apply" value="Apply"><input type="button" value="Done" onclick="done()"></td>
|
||||
: <input type="submit" name="#apply" value="Apply" disabled><input type="button" value="Done" onclick="done()"></td>
|
||||
</form>
|
||||
|
||||
@@ -3,8 +3,8 @@ Title="Parity Check"
|
||||
Tag="calendar"
|
||||
---
|
||||
<?PHP
|
||||
/* Copyright 2012-2017, Bergware International.
|
||||
* Copyright 2005-2017, Lime Technology
|
||||
/* Copyright 2012-2018, Bergware International.
|
||||
* Copyright 2005-2018, Lime Technology
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License version 2,
|
||||
@@ -189,5 +189,5 @@ Write corrections to parity disk:
|
||||
> Choose here whether any parity errors found during the check, need to be corrected on the parity disk or not.
|
||||
|
||||
|
||||
: <input type="submit" name="#apply" value="Apply"><input type="button" value="Done" onclick="done()"></td>
|
||||
: <input type="submit" name="#apply" value="Apply" disabled><input type="button" value="Done" onclick="done()"></td>
|
||||
</form>
|
||||
|
||||
@@ -4,8 +4,8 @@ Tag="list-ul"
|
||||
Cond="($var['shareSMBEnabled']=='ads')"
|
||||
---
|
||||
<?PHP
|
||||
/* Copyright 2005-2017, Lime Technology
|
||||
* Copyright 2012-2017, Bergware International.
|
||||
/* Copyright 2005-2018, Lime Technology
|
||||
* Copyright 2012-2018, Bergware International.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License version 2,
|
||||
@@ -48,5 +48,5 @@ AD initial group:
|
||||
: <input type="text" name="shareInitialGroup" maxlength="40" value="<?=htmlspecialchars($var['shareInitialGroup'])?>">
|
||||
|
||||
|
||||
: <input type="submit" name="changeShare" value="Apply"><input type="button" value="Done" onclick="done()">
|
||||
: <input type="submit" name="changeShare" value="Apply" disabled><input type="button" value="Done" onclick="done()">
|
||||
</form>
|
||||
@@ -4,8 +4,8 @@ Cond="($var['shareSMBEnabled']!='no')"
|
||||
Tag="share-alt-square"
|
||||
---
|
||||
<?PHP
|
||||
/* Copyright 2017, Lime Technology
|
||||
* Copyright 2017, Bergware International.
|
||||
/* Copyright 2018, Lime Technology
|
||||
* Copyright 2018, Bergware International.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License version 2,
|
||||
@@ -30,7 +30,7 @@ Samba extra configuration:
|
||||
: <textarea spellcheck="false" cols="80" rows="22" maxlength="2048" name="text" style="font-family:bitstream;width:66%"><?=htmlspecialchars($text)?></textarea>
|
||||
|
||||
|
||||
: <input type="submit" value="Apply"/><input type="button" value="Done" onclick="done()">
|
||||
: <input type="submit" value="Apply" disabled><input type="button" value="Done" onclick="done()">
|
||||
|
||||
> Click the **Apply** button to commit the current edits. Click **Reset** to
|
||||
> undo any changes you make (before Saving). Click **Done** to exit this page.
|
||||
|
||||
@@ -4,8 +4,8 @@ Tag="sitemap"
|
||||
Cond="($var['shareSMBEnabled']=='yes')"
|
||||
---
|
||||
<?PHP
|
||||
/* Copyright 2005-2017, Lime Technology
|
||||
* Copyright 2012-2017, Bergware International.
|
||||
/* Copyright 2005-2018, Lime Technology
|
||||
* Copyright 2012-2018, Bergware International.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License version 2,
|
||||
@@ -31,5 +31,5 @@ Local master:
|
||||
> of other servers, will usually become the local Master Browser.
|
||||
|
||||
|
||||
: <input type="submit" name="changeShare" value="Apply"><input type="button" value="Done" onclick="done()">
|
||||
: <input type="submit" name="changeShare" value="Apply" disabled><input type="button" value="Done" onclick="done()">
|
||||
</form>
|
||||
@@ -3,8 +3,8 @@ Title="SMB Settings"
|
||||
Tag="windows"
|
||||
---
|
||||
<?PHP
|
||||
/* Copyright 2005-2017, Lime Technology
|
||||
* Copyright 2012-2017, Bergware International.
|
||||
/* Copyright 2005-2018, Lime Technology
|
||||
* Copyright 2012-2018, Bergware International.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License version 2,
|
||||
@@ -40,11 +40,6 @@ Hide "dot" files:
|
||||
|
||||
> If set to 'No' then dot files will appear in folder lists the same as any other file.
|
||||
|
||||
<?if ($var['fsState']=="Started"):?>
|
||||
|
||||
: <input type="submit" name="changeShare" value="Apply" disabled><input type="button" value="Done" onclick="done()">Array must be <span class="strong big">Stopped</span> to change
|
||||
<?else:?>
|
||||
|
||||
: <input type="submit" name="changeShare" value="Apply"><input type="button" value="Done" onclick="done()">
|
||||
<?endif;?>
|
||||
: <input type="submit" name="changeShare" value="Apply" disabled><input type="button" value="Done" onclick="done()"><?if ($var['fsState']=="Started"):?>Array must be <span class="strong big">Stopped</span> to change<?endif;?>
|
||||
</form>
|
||||
|
||||
@@ -248,7 +248,7 @@ Local TLD:
|
||||
> Enter your local Top Level Domain. May be blank.
|
||||
|
||||
|
||||
: <input type="button" value="Apply" onclick="checkPorts(this.form)"><input type="button" value="Done" onclick="done()">
|
||||
: <input type="button" value="Apply" onclick="checkPorts(this.form)" disabled><input type="button" value="Done" onclick="done()">
|
||||
|
||||
</form>
|
||||
<div style="height:24px"></div>
|
||||
|
||||
@@ -4,8 +4,8 @@ Tag="apple"
|
||||
Cond="(($var['shareAFPEnabled']!='no') && (isset($name)?array_key_exists($name,$sec_afp):0))"
|
||||
---
|
||||
<?PHP
|
||||
/* Copyright 2005-2017, Lime Technology
|
||||
* Copyright 2012-2017, Bergware International.
|
||||
/* Copyright 2005-2018, Lime Technology
|
||||
* Copyright 2012-2018, Bergware International.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License version 2,
|
||||
@@ -124,7 +124,7 @@ Security:
|
||||
> read/write (or have no access) according their access right for the share on the server.
|
||||
|
||||
|
||||
: <input type="submit" name="changeShareSecurityAFP" value="Apply"><input type="button" value="Done" onclick="done()">
|
||||
: <input type="submit" name="changeShareSecurityAFP" value="Apply" disabled><input type="button" value="Done" onclick="done()">
|
||||
</form>
|
||||
|
||||
<?if ($sec_afp[$name]['security'] == 'secure'):?>
|
||||
@@ -172,7 +172,7 @@ foreach ($rows as $row)echo $row;
|
||||
<?input_secure_users($sec_afp);?>
|
||||
|
||||
|
||||
: <input type="submit" name="changeShareAccessAFP" value="Apply"><input type="button" value="Done" onclick="done()">
|
||||
: <input type="submit" name="changeShareAccessAFP" value="Apply" disabled><input type="button" value="Done" onclick="done()">
|
||||
</form>
|
||||
|
||||
<?elseif ($sec_afp[$name]['security'] == 'private'):?>
|
||||
@@ -220,7 +220,7 @@ foreach($rows as $row) echo $row;
|
||||
<?input_private_users($sec_afp);?>
|
||||
|
||||
|
||||
: <input type="submit" name="changeShareAccessAFP" value="Apply"><input type="button" value="Done" onclick="done()">
|
||||
: <input type="submit" name="changeShareAccessAFP" value="Apply" disabled><input type="button" value="Done" onclick="done()">
|
||||
</form>
|
||||
<?endif;?>
|
||||
|
||||
|
||||
@@ -4,8 +4,8 @@ Tag="linux"
|
||||
Cond="(($var['shareNFSEnabled']!='no') && (isset($name)?array_key_exists($name,$sec_nfs):0))"
|
||||
---
|
||||
<?PHP
|
||||
/* Copyright 2005-2017, Lime Technology
|
||||
* Copyright 2012-2017, Bergware International.
|
||||
/* Copyright 2005-2018, Lime Technology
|
||||
* Copyright 2012-2018, Bergware International.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License version 2,
|
||||
@@ -75,7 +75,7 @@ Security:
|
||||
</select>
|
||||
|
||||
|
||||
: <input type="submit" name="changeShareSecurityNFS" value="Apply"><input type="button" value="Done" onclick="done()">
|
||||
: <input type="submit" name="changeShareSecurityNFS" value="Apply" disabled><input type="button" value="Done" onclick="done()">
|
||||
</form>
|
||||
|
||||
<?if ($sec_nfs[$name]['security']=="private"):?>
|
||||
@@ -85,7 +85,7 @@ Rule:
|
||||
: <input type="text" name="shareHostListNFS" maxlength="256" value="<?=htmlspecialchars($sec_nfs[$name]['hostList'])?>">
|
||||
|
||||
|
||||
: <input type="submit" name="changeShareAccessNFS" value="Apply"><input type="button" value="Done" onclick="done()">
|
||||
: <input type="submit" name="changeShareAccessNFS" value="Apply" disabled><input type="button" value="Done" onclick="done()">
|
||||
</form>
|
||||
<?endif;?>
|
||||
|
||||
|
||||
@@ -4,8 +4,8 @@ Tag="windows"
|
||||
Cond="(($var['shareSMBEnabled']!='no') && (isset($name)?array_key_exists($name,$sec):0))"
|
||||
---
|
||||
<?PHP
|
||||
/* Copyright 2005-2017, Lime Technology
|
||||
* Copyright 2012-2017, Bergware International.
|
||||
/* Copyright 2005-2018, Lime Technology
|
||||
* Copyright 2012-2018, Bergware International.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License version 2,
|
||||
@@ -101,7 +101,7 @@ Security:
|
||||
> read-only access.
|
||||
|
||||
|
||||
: <input type="submit" name="changeShareSecurity" value="Apply"><input type="button" value="Done" onclick="done()">
|
||||
: <input type="submit" name="changeShareSecurity" value="Apply" disabled><input type="button" value="Done" onclick="done()">
|
||||
</form>
|
||||
|
||||
<?if ($sec[$name]['security'] == 'secure'):?>
|
||||
@@ -149,7 +149,7 @@ foreach ($rows as $row) echo $row;
|
||||
<?input_secure_users($sec);?>
|
||||
|
||||
|
||||
: <input type="submit" name="changeShareAccess" value="Apply"><input type="button" value="Done" onclick="done()">
|
||||
: <input type="submit" name="changeShareAccess" value="Apply" disabled><input type="button" value="Done" onclick="done()">
|
||||
</form>
|
||||
|
||||
<?elseif ($sec[$name]['security'] == 'private'):?>
|
||||
@@ -197,7 +197,7 @@ foreach ($rows as $row) echo $row;
|
||||
<?input_private_users($sec);?>
|
||||
|
||||
|
||||
: <input type="submit" name="changeShareAccess" value="Apply"><input type="button" value="Done" onclick="done()">
|
||||
: <input type="submit" name="changeShareAccess" value="Apply" disabled><input type="button" value="Done" onclick="done()">
|
||||
</form>
|
||||
<?endif;?>
|
||||
|
||||
|
||||
@@ -4,8 +4,8 @@ Tag="wrench"
|
||||
Cond="strpos($disks[$name]['status'],'_NP')===false"
|
||||
---
|
||||
<?PHP
|
||||
/* Copyright 2005-2017, Lime Technology
|
||||
* Copyright 2012-2017, Bergware International.
|
||||
/* Copyright 2005-2018, Lime Technology
|
||||
* Copyright 2012-2018, Bergware International.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License version 2,
|
||||
|
||||
@@ -3,8 +3,8 @@ Title="Share Settings"
|
||||
Tag="share-alt-square"
|
||||
---
|
||||
<?PHP
|
||||
/* Copyright 2005-2017, Lime Technology
|
||||
* Copyright 2012-2017, Bergware International.
|
||||
/* Copyright 2005-2018, Lime Technology
|
||||
* Copyright 2012-2018, Bergware International.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License version 2,
|
||||
@@ -244,7 +244,7 @@ Share status:
|
||||
> Share does *not* contain any data and may be deleted if not needed any longer.
|
||||
|
||||
Delete<input type="checkbox" name="confirmDelete" onchange="chkDelete(this.form, this.form.cmdEditShare);">
|
||||
: <input type="submit" name="cmdEditShare" value="Apply"><input type="button" value="Done" onclick="done()">
|
||||
: <input type="submit" name="cmdEditShare" value="Apply" disabled><input type="button" value="Done" onclick="done()">
|
||||
<?else:?>
|
||||
Share status:
|
||||
: <span class="big">Share contains data</span>
|
||||
@@ -252,7 +252,7 @@ Share status:
|
||||
> Share can *not* be deleted as long as it contains data. Be aware that some data can be hidden. See also [SMB Settings](/Settings/SMB) -> Hide "dot" files.
|
||||
|
||||
|
||||
: <input type="submit" name="cmdEditShare" value="Apply"><input type="button" value="Done" onclick="done()">
|
||||
: <input type="submit" name="cmdEditShare" value="Apply" disabled><input type="button" value="Done" onclick="done()">
|
||||
<?endif;?>
|
||||
</form>
|
||||
<script>
|
||||
|
||||
@@ -4,8 +4,8 @@ Tag="user-circle"
|
||||
Cond="$var['fsState']!='Stopped' && $var['shareUser']=='e'"
|
||||
---
|
||||
<?PHP
|
||||
/* Copyright 2005-2017, Lime Technology
|
||||
* Copyright 2012-2017, Bergware International.
|
||||
/* Copyright 2005-2018, Lime Technology
|
||||
* Copyright 2012-2018, Bergware International.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License version 2,
|
||||
@@ -19,7 +19,7 @@ Cond="$var['fsState']!='Stopped' && $var['shareUser']=='e'"
|
||||
function displayShares(all) {
|
||||
if (all == 'yes') {
|
||||
$.cookie('ssz','ssz',{path:'/'});
|
||||
$('#share_list').html("<tr><td colspan='8' style='text-align:center;padding:24px'><i class='fa fa-circle-o-notch fa-spin fa-3x fa-fw'></i></td></tr>");
|
||||
$('#share_list').html("<tr><td colspan='8'><div class='spinner'></div></td></tr>");
|
||||
}
|
||||
$.get('/webGui/include/ShareList.php',{compute:all,path:'<?=addslashes(htmlspecialchars($path))?>',scale:'<?=$display['scale']?>',number:'<?=$display['number']?>',fill:$.cookie('ssz')},function(data){
|
||||
$.removeCookie('ssz',{path:'/'})
|
||||
|
||||
@@ -5,8 +5,8 @@ Icon="share-settings.png"
|
||||
Tag="share-alt-square"
|
||||
---
|
||||
<?PHP
|
||||
/* Copyright 2005-2017, Lime Technology
|
||||
* Copyright 2012-2017, Bergware International.
|
||||
/* Copyright 2005-2018, Lime Technology
|
||||
* Copyright 2012-2018, Bergware International.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License version 2,
|
||||
@@ -121,5 +121,5 @@ Tunable (enable Direct IO):
|
||||
> *Auto* selects No.
|
||||
|
||||
|
||||
: <input type="submit" name="changeShare" value="Apply" <?=$disabled?>><input type="button" value="Done" onclick="done()"><?if ($disabled):?>Array must be <span class="strong big">Stopped</span> to change<?endif;?>
|
||||
: <input type="submit" name="changeShare" value="Apply" disabled><input type="button" value="Done" onclick="done()"><?if ($disabled):?>Array must be <span class="strong big">Stopped</span> to change<?endif;?>
|
||||
</form>
|
||||
|
||||
@@ -3,8 +3,8 @@ Title="SMTP Settings"
|
||||
Tag="envelope"
|
||||
---
|
||||
<?PHP
|
||||
/* Copyright 2005-2017, Lime Technology
|
||||
* Copyright 2012-2017, Bergware International.
|
||||
/* Copyright 2005-2018, Lime Technology
|
||||
* Copyright 2012-2018, Bergware International.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License version 2,
|
||||
@@ -185,6 +185,6 @@ Password:
|
||||
> Enter the username and password to login to your email account. Be aware that the password is stored unencrypted in the email configuration file.
|
||||
|
||||
|
||||
: <input type="submit" name="#apply" value="Apply"><input type="button" value="Done" onclick="done()">
|
||||
: <input type="submit" name="#apply" value="Apply" disabled><input type="button" value="Done" onclick="done()">
|
||||
<span id="testresult" style="font-size:13px"><input type="button" id="testbutton" value="Test"<?if ($incomplete):?> disabled<?endif;?>></span>
|
||||
</form>
|
||||
|
||||
@@ -3,8 +3,8 @@ Title="Add User"
|
||||
Tag="user"
|
||||
---
|
||||
<?PHP
|
||||
/* Copyright 2005-2017, Lime Technology
|
||||
* Copyright 2012-2017, Bergware International.
|
||||
/* Copyright 2005-2018, Lime Technology
|
||||
* Copyright 2012-2018, Bergware International.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License version 2,
|
||||
@@ -46,10 +46,6 @@ function restore() {
|
||||
|
||||
function checkUsername(form) {
|
||||
var username = form.userName.value.trim();
|
||||
if (username.length==0) {
|
||||
swal({title:"Missing user name",text:"Please enter a user name",type:"error"});
|
||||
return false;
|
||||
}
|
||||
if (!username.match('^[a-z_][a-z0-9_-]*[$]?$')) {
|
||||
swal({title:"Invalid user name",text:"Use only lowercase letters, digits, underscores and dashes",type:"error"});
|
||||
return false;
|
||||
@@ -123,7 +119,7 @@ $(function(){
|
||||
|
||||
<form markdown="1" name="user_edit" method="POST" action="/update.htm" target="progressFrame" onsubmit="return checkUsername(this)">
|
||||
User name:
|
||||
: <input type="text" name="userName" maxlength="32">
|
||||
: <input type="text" name="userName" maxlength="32" onKeyUp="this.form.cmdUserEdit.disabled=(this.form.userName.value=='')">
|
||||
|
||||
> Usernames may be up to 32 characters long and must start with a **lower case letter** or an underscore,
|
||||
> followed by **lower case letters**, digits, underscores, or dashes. They can end with a dollar sign.
|
||||
@@ -140,13 +136,13 @@ Custom image:
|
||||
> The image will be scaled to 48x48 pixels in size. The maximum image file upload size is 95 kB (97,280 bytes).
|
||||
|
||||
Password:
|
||||
: <input type="password" name="userPassword" maxlength="129" onKeyUp="this.form.cmdUserEdit.disabled=(this.form.userPassword.value!=this.form.userPasswordConf.value);">
|
||||
: <input type="password" name="userPassword" maxlength="129" onKeyUp="this.form.cmdUserEdit.disabled=(this.form.userName.value=='' || this.form.userPassword.value!=this.form.userPasswordConf.value)">
|
||||
|
||||
> Up to 128 characters.
|
||||
|
||||
Retype password:
|
||||
: <input type="password" name="userPasswordConf" maxlength="129" onKeyUp="this.form.cmdUserEdit.disabled=(this.form.userPassword.value!=this.form.userPasswordConf.value);">
|
||||
: <input type="password" name="userPasswordConf" maxlength="129" onKeyUp="this.form.cmdUserEdit.disabled=(this.form.userName.value=='' || this.form.userPassword.value!=this.form.userPasswordConf.value)">
|
||||
|
||||
|
||||
: <input type="submit" name="cmdUserEdit" value="Add"><input type="button" value="Done" onclick="done('UserAdd')">
|
||||
: <input type="submit" name="cmdUserEdit" value="Add" disabled><input type="button" value="Done" onclick="done('UserAdd')">
|
||||
</form>
|
||||
|
||||
@@ -3,8 +3,8 @@ Title="Edit User"
|
||||
Tag="user"
|
||||
---
|
||||
<?PHP
|
||||
/* Copyright 2005-2017, Lime Technology
|
||||
* Copyright 2012-2017, Bergware International.
|
||||
/* Copyright 2005-2018, Lime Technology
|
||||
* Copyright 2012-2018, Bergware International.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License version 2,
|
||||
@@ -148,19 +148,19 @@ Custom image:
|
||||
<?else:?>
|
||||
Delete<input type="checkbox" name="confirmDelete" onChange="chkDelete(this.form, this.form.cmdUserEdit)">
|
||||
<?endif;?>
|
||||
: <input type="submit" name="cmdUserEdit" value="Apply"><input type="button" value="Done" onclick="done('UserEdit')">
|
||||
: <input type="submit" name="cmdUserEdit" value="Apply" disabled><input type="button" value="Done" onclick="done('UserEdit')">
|
||||
</form>
|
||||
<br><br>
|
||||
<form markdown="1" method="POST" action="/update.htm" target="progressFrame" onsubmit="return checkPassword(this)">
|
||||
<input type="hidden" name="userName" value="<?=htmlspecialchars($name)?>">
|
||||
Password:
|
||||
: <input type="password" name="userPassword" maxlength="129" onKeyUp="this.form.cmdUserEdit.disabled = (this.form.userPassword.value != this.form.userPasswordConf.value);">
|
||||
: <input type="password" name="userPassword" maxlength="129" onKeyUp="this.form.cmdUserEdit.disabled=(this.form.userPassword.value != this.form.userPasswordConf.value);">
|
||||
|
||||
> Up to 128 characters.
|
||||
|
||||
Retype password:
|
||||
: <input type="password" name="userPasswordConf" maxlength="129" onKeyUp="this.form.cmdUserEdit.disabled = (this.form.userPassword.value != this.form.userPasswordConf.value);">
|
||||
: <input type="password" name="userPasswordConf" maxlength="129" onKeyUp="this.form.cmdUserEdit.disabled=(this.form.userPassword.value != this.form.userPasswordConf.value);">
|
||||
|
||||
|
||||
: <input type="submit" name="cmdUserEdit" value="Change"><input type="button" value="Done" onclick="done('UserEdit')">
|
||||
: <input type="submit" name="cmdUserEdit" value="Change" disabled><input type="button" value="Done" onclick="done('UserEdit')">
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user