Source

trac-dvbcronrecording-plugin / src / dvbcronrecording / templates / channels_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="channelslist">
		<h1>${title}</h1>
		<xi:include href="channels_nav.html" />
		<xi:include href="channelsconf_nav.html" />
                <div>
                        <!--  -->
                        &nbsp; &nbsp; &nbsp; &nbsp;
                        <form method="post" action="${href.recording('channels/text')}"
                                class="actionform">
                                <select name="adapter">
                                        <option py:for="adaptername in sorted(adapterlist)" 
                                           value="${adaptername}"
                                           selected="${adaptername == adapter or None}">
                                                ${adaptername}</option>
                                </select>
                                <input type="submit" value="${_('channels.conf text')}"
                                        class="actionbutton"></input>
                        </form>
                </div>
		
		
		<div>${message}</div>
		<br />

		<table cellpadding="0" cellspacing="0">
			<tr>
				<th>&nbsp;</th>
				<th class="id">#</th>
				<th class="channelname">${_('channelname')}&nbsp;</th>
				<th class="adapter">${_('adapter')}&nbsp;</th>
				<th class="title">${_('channel.conf title')}&nbsp;</th>
				<th>${_('action buttons')}</th>
			</tr>

			<py:if test="perm.has_permission('DVBREC_CHANNELS_EDIT')">
				<div py:for="item in new_datalist">
					<form method="post" action="${href.recording('channels/newentry')}">
						<tr>
							<td class="id new" colspan="2">${_('NEW')}</td>
							<td class="channelname"><input type="text"
								name="channelname" value="${item.channelname}"></input>
							</td>
							<td class="adapter"><select name="adapter">
									<option py:for="item_adapter in sorted(adapterlist)"
										value="${item_adapter}"
										selected="${item_adapter == item.adapter or None}"
										>${item_adapter}</option>
							</select></td>
							<td class="title"><input type="text" name="title"
								value="${item.title}"></input>
							</td>
							<td class="action"><input type="submit"
								value="${_('insert')}"></input>
							</td>
						</tr>
					</form>
				</div>
			</py:if>

			<div py:for="item in datalist">
				<form method="post" action="${href.recording('channels/update')}">
					<tr class="status${item.status}">
						<td><py:if test="perm.has_permission('DVBREC_CHANNELS_EDIT')">
								<span class="deletebutton"> <a
									href="${href.recording('channels/delete')}?id=${item.id}">
										&#x2716; </a> </span>
							</py:if></td>
						<td class="id">${item.id}<input type="hidden" name="id"
							value="${item.id}"></input></td>
						<td><input type="text" name="channelname"
							value="${item.channelname}" style="width: 6em" />
						</td>
						<td class="adapter"><select name="adapter">
								<option py:for="item_adapter in sorted(adapterlist)"
									value="${item_adapter}"
                                                                        selected="${item_adapter == item.adapter or None}"
									>${item_adapter}</option>
						</select></td>
						<td class="title"><input type="text" name="title"
							value="${item.title}"></input>
						</td>
						<td class="action"><py:if
								test="perm.has_permission('DVBREC_CHANNELS_EDIT')">
								<input type="submit" value="${_('update')}" class="actionbutton" />
							</py:if></td>
					</tr>
				</form>
			</div>
		</table>
		<xi:include href="paginator_datalist.html" />
	</div>

	<hr />
</body>
</html>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.