<label class="item item-input">
    <input type="text" ng-model="tile.nameNew" maxlength="50" placeholder="{{oldName || (('EnergySwitch' | translate) + (energyNameCount > 0 ? ' ' + (energyNameCount+1) : ''))}}" ng-focus="setEditing()">
    <button ng-if="tile.nameNew.length"
            class="input-button button button-icon ion-close-circled"
            on-tap="clearName()">
    </button>
</label>