updatemetadata.xsl 1.2 KB
Newer Older
1
<xsl:stylesheet xmlns:xsl = "http://www.w3.org/1999/XSL/Transform" version = "1.0">
2 3
	<xsl:output method="html" doctype-system="about:legacy-compat" encoding="UTF-8" indent="yes" />
	<!-- Import include files -->
4
	<xsl:include href="includes/page.xsl"/>
5 6
	<xsl:include href="includes/mountnav.xsl"/>

7
	<xsl:variable name="title">Update Metadata</xsl:variable>
8

9
	<xsl:template name="content">
10
				<div class="section">
11
					<h2><xsl:value-of select="$title" /></h2>
12 13 14 15 16 17

					<xsl:for-each select="source">
						<div class="article">
							<h3>Mountpoint  <xsl:value-of select="@mount" /></h3>
							<!-- Mount nav -->
							<xsl:call-template name="mountnav" />
18
							<form method="post" action="/admin/metadata.xsl">
19 20 21 22 23 24 25 26 27 28 29 30
								<label for="metadata" class="hidden">Metadata</label>
								<input type="text" id="metadata" name="song" value="" placeholder="Click to edit" required="required" />
								<input type="hidden" name="mount" value="{@mount}" />
								<input type="hidden" name="mode" value="updinfo" />
								<input type="hidden" name="charset" value="UTF-8" />
								<input type="submit" value="Update Metadata" />
							</form>
						</div>
					</xsl:for-each>

				</div>
	</xsl:template>
31
</xsl:stylesheet>