1. Guido Draheim
  2. trac-dvbcronrecording-plugin

Source

trac-dvbcronrecording-plugin / src / dvbcronrecording / templates / channelsconf_list.html

<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:py="http://genshi.edgewall.org/"
      xmlns:xi="http://www.w3.org/2001/XInclude">
  <xi:include href="layout.html" />
  <xi:include href="macros.html" />
<head><title>${title}</title></head>
<body>
<div id="ctxtnav" class="nav">
</div>

<div id="content" class="recordingchannelsconf">
  <h1>
    ${title}
  </h1>
  <xi:include href="channels_nav.html" />
  <xi:include href="channelsconf_nav.html" />
  <div class="actionlist">
                  &nbsp; &nbsp; &nbsp; &nbsp;
          <form method="get" action="${href.recording('channelsconf/list')}" class="actionform">
            <select name="adapter">
                <option py:for="adapter in sorted(adapterlist)" 
                        value="${adapter}">
                        ${adapter}
                </option>
            </select>
            <input type="submit" value="${_('channel subselection')}" class="actionbutton"></input>
            <label for="channeltype">${_('channel type')}:
            </label><select name="channeltype">
                <option py:for="name in channeltypelist" value="${name}" 
                    selected="${name == channeltype or None}">${_(name)}</option>
            </select>
          </form>
          <br /> &nbsp; &nbsp; &nbsp; &nbsp;
          <form method="get" action="${href.recording('channelsconf/edit')}" class="actionform">
            <select name="adapter">
                <option py:for="adapter in sorted(adapterlist)" 
                        value="${adapter}">
                        ${adapter}
                </option>
            </select>
            <input type="submit" value="${_('channels.conf editor')}" class="actionbutton"></input>
          </form>
   </div>
  <div>${message}</div><br />

  <table cellpadding="0" cellspacing="0">
        <tr>
      <th class="id">#</th>
      <th class="adapter">${_('adapter')}&nbsp;</th> 
      <th class="title">${_('title')}&nbsp;</th>
      <th class="frequency">${_('frequency')}&nbsp;</th>
      <th class="polarity">${_('polarity')}&nbsp;</th>
      <th class="source">${_('source')}&nbsp;</th>
      <th class="symbolrate">${_('symbolrate')}&nbsp;</th>
      <th class="vpid">${_('vpid')}&nbsp;</th>
      <th class="apid">${_('apid')}&nbsp;</th>
      <th class="tpid">${_('tpid')}&nbsp;</th>
      <th>${_('action buttons')}</th>
      <th>-&nbsp;</th>
      </tr>
      
    <py:if test="perm.has_permission('DVBREC_CHANNELSCONF_EDIT')">
  <div py:for="item in new_datalist">
    <form method="post" action="${href.channels('newentry')}">
      <tr>
      <td class="id new">${_('NEW')}</td>
      <td class="adapter">
           <select name="adapter">
                <option py:for="adapter in sorted(adapterlist)" 
                        value="${adapter}">
                        ${adapter}
                </option>
            </select>
       </td>      
       <td class="title">
          <input type="text" name="title" value="${item.title}"></input>
      </td>
      <td class="frequency"><input type="text" name="frequency" value="${item.frequency}"></input></td>
      <td class="polarity"><select name="polarity">
        <option py:for="name in sorted(polaritylist)" 
                value="${name}" selected="${ (name == item.polarity) or None}">
                ${polaritylist[name]}
        </option> 
      </select></td>
      <td class="source"><input type="text" name="source" value="${item.source}"></input></td>
      <td class="symbolrate"><input type="text" name="symbolrate" value="${item.symbolrate}"></input></td>
      <td class="vpid"><input type="text" name="vpid" value="${item.vpid}"></input></td>
      <td class="apid"><input type="text" name="apid" value="${item.apid}"></input></td>
      <td class="tpid"><input type="text" name="tpid" value="${item.tpid}"></input></td>
      <td class="action"><input type="submit" value="${_('insert')}"></input></td>
      <td></td>
      </tr>
     </form>    
  </div>    
    </py:if>

  <div py:for="item in datalist">
  <form method="post" action="${href.channels('update')}">
    <tr class="status${item.status}">
      <td class="id">
        <py:if test="perm.has_permission('DVBREC_CHANNELSCONF_EDIT')">
           <span  py:with="item_adapter = quote_plus(item.adapter); item_title = quote_plus(item.title)">
              <a href="${href.recording('channelsconf/delete')}?adapter=${item_adapter}&amp;title=${item_title}">
                <span class="delete">
                   &#x2716;
                </span>           
              </a>
           </span>
        </py:if>              
       </td>
      <td class="adapter"><select name="adapter">
                <option py:for="adapter in sorted(adapterlist)" 
                        value="${adapter}">
                        ${adapter}
        </option></select>
      </td>
      <td class="title">
            <input type="text" name="title" value="${item.title}"></input>
      </td>
      <td class="frequency"><input type="text" name="frequency" value="${item.frequency}"></input></td>
      <td class="polarity"><select name="polarity">
        <option py:for="name in sorted(polaritylist)" 
                value="${name}" selected="${ (name == item.polarity) or None}">
                ${polaritylist[name]}
        </option> 
      </select></td>
      <td class="source"><input type="text" name="source" value="${item.source}"></input></td>
      <td class="symbolrate"><input type="text" name="symbolrate" value="${item.symbolrate}"></input></td>
      <td class="vpid"><input type="text" name="vpid" value="${item.vpid}"></input></td>
      <td class="apid"><input type="text" name="apid" value="${item.apid}"></input></td>
      <td class="tpid"><input type="text" name="tpid" value="${item.tpid}"></input></td>
      <td class="action" py:with="item_adapter = quote_plus(item.adapter) ;  item_title = quote_plus(item.title)">
        <py:if test="perm.has_permission('DVBREC_CHANNELSCONF_EDIT')">
          <input type="submit" value="${_('update')}" class="actionbutton"></input>
        </py:if>
      </td><td>
        <py:if test="perm.has_permission('DVBREC_CHANNELS_EDIT')">
          <span  class="deletebutton" py:with="item_adapter = quote_plus(item.adapter); item_title = quote_plus(item.title)">
            <a href="${href.recording('channelsconf/takeover')}?adapter=${item_adapter}&amp;title=${item_title}">${_("takeover")}</a>
          </span>
        </py:if>
      </td>
    </tr>
    </form>
  </div>
  </table>
  <xi:include href="paginator_datalist.html" />
</div>
<hr />

</body></html>