java/nekurak.net-web/web/WEB-INF/casti/pridatPodnik.jsp
changeset 57 7162ed62c9ab
parent 42 77c8271add7d
child 73 34c7eb5f2fae
     1.1 --- a/java/nekurak.net-web/web/WEB-INF/casti/pridatPodnik.jsp	Thu Feb 25 16:00:42 2010 +0100
     1.2 +++ b/java/nekurak.net-web/web/WEB-INF/casti/pridatPodnik.jsp	Sun Mar 07 21:19:35 2010 +0100
     1.3 @@ -12,21 +12,29 @@
     1.4  
     1.5      <c:choose>
     1.6  	<c:when test="${param.akcePridat == 'pridej'}">
     1.7 -	    <jsp:setProperty name="podnik" property="*"/>
     1.8 -	    <jsp:setProperty name="pridatPodnik" property="podnik" value="${podnik}"/>
     1.9 -	    <c:if test="${pridatPodnik.pridano}">
    1.10 -		<p><fmt:message key="pridatPodnik.bylPridan"/></p>
    1.11 -	    </c:if>
    1.12 +	    <c:catch var="pridatPodnikChyba">
    1.13 +		<jsp:setProperty name="podnik" property="*"/>
    1.14 +		<jsp:setProperty name="pridatPodnik" property="podnik" value="${podnik}"/>
    1.15 +		<c:set var="pridatPodnikOK" value="${pridatPodnik.pridano}"/>
    1.16 +	    </c:catch>
    1.17 +	    <c:choose>
    1.18 +		<c:when test="${pridatPodnikChyba == null}">
    1.19 +		    <p><fmt:message key="pridatPodnik.bylPridan"/></p>
    1.20 +		</c:when>
    1.21 +		<c:otherwise>
    1.22 +		    <p class="chybovaHlaska"><fmt:message key="pridatPodnik.nebylPridan"/></p>
    1.23 +		</c:otherwise>
    1.24 +	    </c:choose>
    1.25  	</c:when>
    1.26  	<c:otherwise>
    1.27  	    <form method="post" action="?akce=pridatPodnik&amp;amp;akcePridat=pridej">
    1.28  		<fieldset>
    1.29  		    <label><fmt:message key="dto.podnik.nazev"/>: <input type="text" name="nazev" maxlength="255"/></label><br/>
    1.30  		    <label><fmt:message key="dto.podnik.popis"/>: <input type="text" name="popis" maxlength="255"/></label><br/>
    1.31 -		    <fmt:message key="dto.podnik.url.tip" var="urlTip"/>
    1.32 +			<fmt:message key="dto.podnik.url.tip" var="urlTip"/>
    1.33  		    <label title="${urlTip}"><fmt:message key="dto.podnik.url"/>: <input type="text" name="url" maxlength="255"/></label><br/>
    1.34  		    <label><fmt:message key="dto.podnik.ulice"/>: <input type="text" name="ulice" maxlength="64"/></label><br/>
    1.35 -		    <fmt:message key="dto.podnik.cisloPopisne.tip" var="cisloPopisneTip"/>
    1.36 +			<fmt:message key="dto.podnik.cisloPopisne.tip" var="cisloPopisneTip"/>
    1.37  		    <label title="${cisloPopisneTip}"><fmt:message key="dto.podnik.cisloPopisne"/>: <input type="text" name="cisloPopisne" maxlength="5"/></label><br/>
    1.38  		    <label><fmt:message key="dto.podnik.mesto"/>: <input type="text" name="mesto" maxlength="64"/></label><br/>
    1.39  		    <button value="submit"><fmt:message key="pridatPodnik.tlacitko"/></button>