Action for showing a edit item page with extra title
19239
public function editAction()
    {
        $model   = $this->getModel();
        $data    = $model->loadFirst();

        //If we try to edit master, add an error message and reroute
        if (isset($data['grl_name']) && $data['grl_name']=='master') {
            $this->addMessage($this->_('Editing `master` is not allowed'));
            $this->_reroute(array('action'=>'index'), true);
        }

        parent::editAction();
    }
1307959
def single_item_action_form_fields(form, document, action)
        render 'hyrax/dashboard/collections/single_item_action_fields', form: form, document: document, action: action
      end
1057435
def custom_slug_or_title
      (Refinery::Pages.use_custom_slugs && custom_slug.presence) ||
        menu_title.presence || title.presence
    end
853609
function setActionTitle(tabId) {
    chrome.pageAction.setTitle({
      tabId: tabId,
      title: generateVersionsTooltip(activeTabs[tabId])
    });
  }
1248393
def _pretty_title_or_id(context, obj, empty_value=_marker):
    
    # if safe_hasattr(obj, 'aq_explicit'):
    #    obj = obj.aq_explicit
    #title = getattr(obj, 'Title', None)
    title = None
    if base_hasattr(obj, 'Title'):
        title = getattr(obj, 'Title', None)
    if safe_callable(title):
        title = title()
    if title:
        return title
    item_id = getattr(obj, 'getId', None)
    if safe_callable(item_id):
        item_id = item_id()
    if item_id and not isIDAutoGenerated(context, item_id):
        return item_id
    if empty_value is _marker:
        empty_value = getEmptyTitle(context)
    return empty_value
388961
def edit(options = { only: [], except: [:id, :created_at, :updated_at], required: [] })
      @required_keys = options[:required]
      @attrs = CEO::Iterator.filter(@thing.attributes.keys, options)
      @model = @thing.model_name.name.constantize
      @route_name ||= @controller_name ||= controller_name
      @index_route = send(:"admin_#{@route_name}_path")

      render 'admin/edit'
    end
534982
function render_edit($item)
    {
        if ($item['name'] === '')
        {
            Eresus_Kernel::app()->getPage()->addErrorMessage(
                sprintf(errFormFieldHasNoName, $item['type'], $this->form['name']));
        }
        $result = "\t\t".'<tr><td class="formLabel">'.$item['label'].'</td><td><input type="text" name="'.$item['name'].'" value="'.EncodeHTML($item['value']).'"'.(empty($item['maxlength'])?'':' maxlength="'.$item['maxlength'].'"').$this->attrs($item).' />'.$item['comment']."</td></tr>\n";
        return $result;
    }
200285
def change_view(self, request, object_id, **kwargs):
        
        page = get_object_or_404(Page, pk=object_id)
        content_model = page.get_content_model()

        kwargs.setdefault("extra_context", {})
        kwargs["extra_context"].update({
            "hide_delete_link": not content_model.can_delete(request),
            "hide_slug_field": content_model.overridden(),
        })

        return super(PageAdmin, self).change_view(request, object_id, **kwargs)
633810
def admin_edit
      return if !user_is_allowed('products', 'edit')
      @product = Product.find(params[:product_id])
      @modification = Modification.find(params[:mod_id])
      @modification_value_input_field = ModificationValueInputField.find(params[:id])
      render :layout => 'caboose/modal'
    end
563450
function editPartTitle(summary, index, newTitle) {
    var parts = summary.getParts();

    var part = parts.get(index);
    if (!part) {
        return summary;
    }

    part = part.set('title', newTitle);
    parts = parts.set(index, part);

    return summary.set('parts', parts);
}
903960
@UiHandler("m_editButton")
    void editAction(ClickEvent event) {

        m_clipboard.enableFavoritesEdit();
        m_buttonUsePanel.setVisible(false);
        m_buttonEditingPanel.setVisible(true);
    }
1147617
function renderCustomTab({ key, label, active, handleClick }) {
  return (
    <Button
      key={key}
      title={label}
      type={active ? types.PRIMARY : types.SECONDARY}
      onClick={handleClick}
    />
  );
}
462874
private void showTitle(@Nullable final CharSequence title) {
        ActionBar actionBar = getSupportActionBar();

        if (actionBar != null) {
            if (isSplitScreen()) {
                if (toolbarLarge != null) {
                    toolbarLarge.setTitle(title);
                }

                actionBar.setTitle(null);
            } else {
                actionBar.setTitle(title);
            }
        }
    }
458790
private void checkShowTitle(Editable s, boolean skipChange) {
        // in this we can check width
        if (isShowTitle() && getWidth() > 0) {
            boolean have = s != null && s.length() > 0;
            if (have != isHaveText || (have && skipChange)) {
                isHaveText = have;
                animateShowTitle(isHaveText);
            }
        }
    }
579733
function column_title( $item ) {

		list( $user_id, $blog_id ) = explode( ':', $item['ID'] );

		// Build row actions
		$actions = [
			'visit' => sprintf( '<a href="%s">%s</a>', get_home_url( $blog_id ), __( 'Visit Book' ) ),
		];

		// Only include admin link if user has admin rights to the book in question
		if ( is_super_admin( $user_id ) || is_user_member_of_blog( $user_id, $blog_id ) ) {
			$actions['dashboard'] = sprintf( '<a href="%s">%s</a>', get_admin_url( $blog_id ), __( 'Visit Admin', 'pressbooks' ) );
		}

		// Return the title contents
		return sprintf(
			'<span class="title">%1$s</span> %2$s',
			$item['title'],
			$this->row_actions( $actions )
		);
	}
46359
public function editingTitle()
    {
        $editingTitle = $this->admin()->editingTitle;

        // Check for the custom option first and
        // return it if it exists
        if ($this->columnExists($editingTitle)) return $this->{$editingTitle};

        // As a last-ditch effort, see if there's a title option
        // we can use so the user doesn't have to ask for it
        if ($this->columnExists('title')) return $this->title;

        return;
    }
547402
protected function setTitleEditCollectionItem()
    {
        $vars = array('%name' => $this->data_collection['title']);

        if (empty($this->data_collection_item['collection_item_id'])) {
            $text = $this->text('Add item to %name', $vars);
        } else {
            $text = $this->text('Edit item of %name', $vars);
        }

        $this->setTitle($text);
    }