Skip to content

Commit

Permalink
set path value of selected path exists
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwechner committed Jan 25, 2012
1 parent cb773a0 commit 4ef53b9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/contributions/resources/search/htdocs/reindexer.xsl
Expand Up @@ -30,15 +30,23 @@
-->
<p>

<!-- repository=yanel_data&path=/projects/where-have-all-the-rabbits-gone/footage -->
<!-- For example: ...?repository=yanel_data&path=/projects/where-have-all-the-rabbits-gone/footage -->
<form method="get">
<select name="repository">
<xsl:for-each select="y:repository">
<!-- TODO: Set selected option based on y:selected-repository/@id -->
<option value="{@id}"><xsl:value-of select="."/></option>
</xsl:for-each>
</select>
<br/>
<xsl:choose>
<xsl:when test="y:selected-path">
Path: <input type="text" name="path" value="{y:selected-path}"/>
</xsl:when>
<xsl:otherwise>
Path: <input type="text" name="path" value="/"/>
</xsl:otherwise>
</xsl:choose>
<br/>
<input type="submit" value="Re-Index"/>
</form>
Expand Down

0 comments on commit 4ef53b9

Please sign in to comment.