1. Guido Draheim
  2. trac-dvbcronrecording-plugin

Source

trac-dvbcronrecording-plugin / src / dvbcronrecording / templates / channelsconf_take.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>
<?python import string ?>
<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">
          <form method="get" action="${href.recording('channelsconf/list')}" class="actionform">
            <select name="adapter">
                <option py:for="adapter1 in sorted(adapterlist)" 
                        selected="${adapter1 == adapter or None}" 
                        value="${adapter1}">
                        ${adapter1}
                </option>
            </select>
            <input type="submit" value="${_('channels.conf list')}" class="actionbutton"></input>
          </form>
          <form method="get" action="${href.recording('channelsconf/edit')}" class="actionform">
            <select name="adapter">
                <option py:for="adapter1 in sorted(adapterlist)" 
                        selected="${adapter1 == adapter or None}" 
                        value="${adapter1}">
                        ${adapter1}
                </option>
            </select>
            <input type="submit" value="${_('channels.conf edit')}" 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>
      </tr>
      
  <div py:for="item in datalist">
  <form method="post" action="${href.recording('channels/append')}">
    <tr class="status${item.status}">
      <td class="id">${item.id}<input type="hidden" name="id" value="${item.id}"></input></td>
      <td class="adapter"><select readonly="readonly" name="adapter">
                <option py:for="adapter1 in sorted(adapterlist)" 
                        selected="${adapter1 == item.adapter or None}" 
                        value="${adapter1}">
                        ${adapter1}
                </option>
            </select>
      </td>      
      <td class="title">
        <input readonly="readonly" type="text" name="title" value="${item.title}"></input>
      </td>
      <td class="frequency"><input readonly="readonly" type="text" name="frequency" value="${item.frequency}"></input></td>
      <td class="polarity"><select readonly="readonly" 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 readonly="readonly" type="text" name="source" value="${item.source}"></input></td>
      <td class="symbolrate"><input readonly="readonly" type="text" name="symbolrate" value="${item.symbolrate}"></input></td>
      <td class="vpid"><input readonly="readonly" type="text" name="vpid" value="${item.vpid}"></input></td>
      <td class="apid"><input readonly="readonly" type="text" name="apid" value="${item.apid}"></input></td>
      <td class="tpid"><input readonly="readonly" type="text" name="tpid" value="${item.tpid}"></input></td>
      </tr><tr>
         <td colspan="2">
         <label for="channelname">${_('channelname')}: </label>
         </td>
         <td colspan="5" class="name" py:with="channelname = string.lower(item.title)">
             <input type="text" name="channelname" value="${channelname}"></input>
         </td>
      <td class="action" colspan="3">
        <input type="submit" value="${_('takeover')}" class="actionbutton" />
      </td>
    </tr>
    </form>
  </div>
  </table>
  <xi:include href="paginator_datalist.html" />
</div>
<hr />
</body></html>