themes/iphone/config.tpl
changeset 77 e5f1f45ea7e2
equal deleted inserted replaced
76:487a16c7117c 77:e5f1f45ea7e2
       
     1 {**
       
     2  * Template file for default Funky Monkey theme
       
     3  * Web control interface script for Amarok
       
     4  * Written by Dan Fuhry - 2008
       
     5  *
       
     6  * This program is Free Software; you can redistribute and/or modify it under the terms of the GNU General Public License
       
     7  * as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
       
     8  *
       
     9  * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
       
    10  * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for details.
       
    11  *}
       
    12 
       
    13 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
       
    14 <html>
       
    15   <head>
       
    16     <title>Greyhound: Configuration</title>
       
    17     <!-- iPhone viewport hack from jailbreakme.com -->
       
    18     <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
       
    19     
       
    20     <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
       
    21     <link rel="stylesheet" type="text/css" href="/themes/{$theme|escape}/style.css" />
       
    22     <link rel="favorite icon" type="image/ico" href="/favicon.ico" />
       
    23     <script type="text/javascript" src="/scripts/config.js"></script>
       
    24   </head>
       
    25   <body>
       
    26   
       
    27     <div class="greylogo"></div>
       
    28     <a class="backlink" href="/index">&laquo; Return to playlist</a>
       
    29     <div class="clearer"></div>
       
    30   
       
    31     <form action="/config" method="post">
       
    32     
       
    33       <div class="tblholder" style="margin: 0 5px;">
       
    34         <table border="0" cellspacing="1" cellpadding="4" style="width: 100%;">
       
    35           <tr>
       
    36             <th>Greyhound configuration</th>
       
    37           </tr>
       
    38           
       
    39           {if $tried}
       
    40           <tr>
       
    41             <td class="row3">
       
    42             {if $success}
       
    43               <p class="success">{$success|nl2br}</p>
       
    44             {else}
       
    45               <p class="error">{$error|nl2br}</p>
       
    46             {/if}
       
    47             </td>
       
    48           </tr>
       
    49           {/if}
       
    50           
       
    51           {if $message}
       
    52           <tr>
       
    53             <td class="row3">
       
    54               <p class="success">{$message|nl2br}</p>
       
    55             </td>
       
    56           </tr>
       
    57           {/if}
       
    58           
       
    59           <!-- field - current config pass -->
       
    60           {if $needpass}
       
    61           <tr>
       
    62             <td class="row2">
       
    63               <b>Config password:</b>
       
    64             </td>
       
    65           </tr>
       
    66           <tr>
       
    67             <td class="row1">
       
    68               <input type="password" name="configpass" />
       
    69             </td>
       
    70           </tr>
       
    71           {/if}
       
    72           
       
    73           <!-- field - public IP -->
       
    74           <tr>
       
    75             <td class="row2">
       
    76               <label><input type="checkbox"
       
    77                      name="public"
       
    78                      id="chk_public"
       
    79                      {if $public}checked="checked"{/if}
       
    80                 />
       
    81               Public IP
       
    82               {if !$reboot_support}<span style="color: #ff5321;">Restart required</span>{/if}
       
    83               </label>
       
    84             </td>
       
    85           </tr>
       
    86           
       
    87           <!-- field - IPv6 -->
       
    88           <tr>
       
    89             <td class="row1">
       
    90               <label>
       
    91               <input type="checkbox"
       
    92                      name="ipv6"
       
    93                      id="chk_ipv6"
       
    94                      {if $ipv6}checked="checked"{/if}
       
    95                 />
       
    96               IPv6 support
       
    97               {if !$reboot_support}<span style="color: #ff5321;">Restart required</span>{/if}
       
    98               </label>
       
    99             </td>
       
   100           </tr>
       
   101           
       
   102           <!-- field - allow multi-process -->
       
   103           <tr>
       
   104             <td class="row2">
       
   105               <label>
       
   106               <input type="checkbox"
       
   107                      name="allow_fork"
       
   108                      id="chk_allow_fork"
       
   109                      {if $allow_fork}checked="checked"{/if}
       
   110                 />
       
   111               Multi-process server mode
       
   112               {if !$reboot_support}<span style="color: #ff5321;">Restart required</span>{/if}
       
   113               </label>
       
   114             </td>
       
   115           </tr>
       
   116           
       
   117           <!-- field - allow control -->
       
   118           <tr>
       
   119             <td class="row1">
       
   120               <label>
       
   121                 <input type="checkbox"
       
   122                      name="allowcontrol"
       
   123                      id="chk_allowcontrol"
       
   124                      {if $allowcontrol}checked="checked"{/if}
       
   125                 />
       
   126               Allow control of Amarok
       
   127               </label>
       
   128             </td>
       
   129           </tr>
       
   130           
       
   131           <!-- section - diagnostics -->
       
   132           
       
   133           <tr>
       
   134             <th>
       
   135               Diagnostics
       
   136             </th>
       
   137           </tr>
       
   138           
       
   139           <!-- clear artwork -->
       
   140           <tr>
       
   141             <td class="row2" style="text-align: center;">
       
   142               <a href="/config/rebuild/artwork" class="backlink inline">Clear artwork cache</a>
       
   143             </td>
       
   144           </tr>
       
   145           
       
   146           <tr>
       
   147             <td class="row2" style="text-align: center;">
       
   148               <a href="/config/rebuild/playlist" class="backlink inline">Refresh playlist</a>
       
   149             </td>
       
   150           </tr>
       
   151           
       
   152           <!-- section - auth config -->
       
   153           <tr>
       
   154             <th>
       
   155               Authentication
       
   156             </th>
       
   157           </tr>
       
   158           
       
   159           <!-- field - enable auth -->
       
   160           <tr>
       
   161             <td class="row1">
       
   162               <input type="checkbox"
       
   163                      name="use_auth"
       
   164                      id="chk_use_auth"
       
   165                      {if $use_auth}checked="checked"{/if}
       
   166                 />
       
   167               Login required for access
       
   168             </td>
       
   169           </tr>
       
   170           
       
   171           <!-- field - user list -->
       
   172           <tr>
       
   173             <td class="row2">
       
   174               <b>User list:</b><br />
       
   175               <small>Warning: passwords aren't encrypted</small><br />
       
   176               <br />
       
   177               {strip}
       
   178               {foreach key=username item=password from=$users}
       
   179                 <script type="text/javascript">register_user('{$username|escape:'quotes'}');</script>
       
   180               {/foreach}
       
   181               {/strip}
       
   182               <ul id="userlist">
       
   183                 <li><a href="#" onclick="add_user_form(); return false;">add user</a></li>
       
   184               </ul>
       
   185             </td>
       
   186           </tr>
       
   187           
       
   188           <!-- field - config PW -->
       
   189           <tr>
       
   190             <td class="row1">
       
   191               Change config password:<br />
       
   192               <input type="password" name="newconfigpass" value="____________________" />
       
   193             </td>
       
   194           </tr>
       
   195           
       
   196           <!-- submit -->
       
   197           <tr>
       
   198             <th>
       
   199               <input type="hidden" name="submit" value="true" />
       
   200               <input type="submit" value="Save changes" />
       
   201             </th>
       
   202           </tr>
       
   203           
       
   204         </table>
       
   205       </div>
       
   206     
       
   207     </form>
       
   208     
       
   209     <a class="backlink" href="/index">&laquo; Return to playlist</a>
       
   210   
       
   211     <div class="poweredby">
       
   212       {include file="footer.tpl"}
       
   213     </div>
       
   214   </body>
       
   215 </html>
       
   216