<h2 style="font-weight:normal">Update {{textTitle}}</h2>
<div ng-switch on="rights.editOther">
<tabset ng-switch-when="true">
	<tab heading="Edit Text">
		<form class="well " ng-submit="updateText(editedText)">
		<label>Title</label>
		<input type="text" class="span4" ng-model="editedText.title" placeholder="Text Name"/>
		<label>Text</label>
		<textarea ng-model="editedText.content" class="span4" rows="4" placeholder="Paste the USX text here"></textarea>
		<label></label>
		<button type="submit" class="btn"><i class="icon-ok"></i>Save</button>
		</form>
	</tab>
</tabset>
<div ng-switch-when="false"><p>You don't have permission to edit this text.</p></div>
</div>

<h2 style="font-weight:normal">Update {{textTitle}}</h2>
<div ng-show="rights.editOther">
<tabset>
	<tab heading="Edit Text">
		<form class="well " ng-submit="updateText(editedText)">
		<label>Title</label>
		<input type="text" class="span4" ng-model="editedText.title" placeholder="Text Name"/>
		<label>Text</label>
		<textarea ng-model="editedText.content" class="span4" rows="4" placeholder="Paste the USX text here"></textarea>
		<label></label>
		<button type="submit" class="btn"><i class="icon-ok"></i>Save</button>
		</form>
	</tab>
</tabset>
</div>
<div ng-hide="rights.editOther"><p>You don't have permission to edit this text.</p></div>

Fix bug with text settings page
Fix bug with text settings page

It seems that as of Angular 1.2, two directives using transclude can
interfere with each other -- and both tabset and ng-switch use
transclusion. Moving the ng-switch to a separate div (and turning it
into ng-show/ng-hide) solves the problem.
