Skip to content
This repository has been archived by the owner on Feb 4, 2022. It is now read-only.

Commit

Permalink
#23: Add description field
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Janssens committed Feb 8, 2017
1 parent 245a9d0 commit f30428c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@
</div>
</fieldset>

<fieldset>
<legend><?= translate('Description') ?></legend>
<textarea name="description" rows="4" cols="50" maxlength="150" class="required"><?= $article->description ?></textarea>
</fieldset>

<? if($article->isAttachable()) : ?>
<fieldset>
<legend><?= translate('Attachments') ?></legend>
Expand All @@ -62,4 +67,4 @@
{
$jQuery("input[name=publish_on]").attr('disabled', this.checked)
});
</script>
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@
</div>
</fieldset>

<fieldset>
<legend><?= translate('Description') ?></legend>
<textarea name="description" rows="4" cols="50" maxlength="150" class="required"><?= $article->description ?></textarea>
</fieldset>

<? if($article->isAttachable()) : ?>
<fieldset>
<legend><?= translate('Attachments') ?></legend>
Expand All @@ -46,4 +51,4 @@
{
$jQuery("input[name=publish_on]").attr('disabled', this.checked)
});
</script>
</script>
2 changes: 2 additions & 0 deletions install/custom/mysql/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,7 @@ CREATE TABLE `news` (
`slug` varchar(250) DEFAULT NULL,
`introtext` mediumtext NOT NULL,
`fulltext` mediumtext NOT NULL,
`description` mediumtext,
`sticky` tinyint(1) DEFAULT NULL,
`published` tinyint(1) NOT NULL DEFAULT '0',
`published_on` datetime DEFAULT NULL,
Expand Down Expand Up @@ -758,6 +759,7 @@ CREATE TABLE `press` (
`title` text NOT NULL,
`slug` varchar(250) default NULL,
`text` mediumtext NOT NULL,
`description` mediumtext,
`published` tinyint(1) NOT NULL default '0',
`published_on` datetime default NULL,
`created_on` datetime default NULL,
Expand Down

0 comments on commit f30428c

Please sign in to comment.