#20855: Autoroute editor improvement

Work Item: 20855
This commit is contained in:
Stanley Goldman
2014-08-05 15:49:01 -07:00
committed by Sebastien Ros
parent 1272eec963
commit 6440cf9f5e

View File

@@ -26,8 +26,16 @@
<span class="hint">@T("Save the current item and leave the input empty to have it automatically generated using the pattern {0} e.g., {1}", defaultPattern.Name, defaultPattern.Description)</span>
}
else {
<span>@Url.MakeAbsolute("/")@urlPrefix</span>
<span class="hint">@T("Save the current item and the url will be generated using the pattern {0} e.g., {1}", defaultPattern.Name, defaultPattern.Description)</span>
var hintClass = string.Empty;
if (!string.IsNullOrEmpty(Model.CurrentUrl)) {
hintClass = "hint";
<span>@Url.MakeAbsolute("/")@urlPrefix@Model.CurrentUrl</span>
}
if (string.IsNullOrEmpty(Model.CurrentUrl)
|| (!string.IsNullOrEmpty(Model.CurrentUrl) && Model.Settings.AutomaticAdjustmentOnEdit)) {
<span class="@hintClass">@T("Save the current item and the url will be generated using the pattern {0} e.g., {1}", defaultPattern.Name, defaultPattern.Description)</span>
}
}
</fieldset>