diff options
| author | Greg Roach <fisharebest@webtrees.net> | 2018-07-02 20:07:25 +0100 |
|---|---|---|
| committer | Greg Roach <fisharebest@webtrees.net> | 2018-07-02 22:25:17 +0100 |
| commit | 0d02e119c530a550b569ab625febe5555acfbaec (patch) | |
| tree | b8617494c0b43614bfc5c77c7b312ac9e1ae33fa /app/Datatables.php | |
| parent | 6317a42df7fd1c115c6680600ed0637a63304fbf (diff) | |
| download | webtrees-0d02e119c530a550b569ab625febe5555acfbaec.tar.gz webtrees-0d02e119c530a550b569ab625febe5555acfbaec.tar.bz2 webtrees-0d02e119c530a550b569ab625febe5555acfbaec.zip | |
Convert lists from functions to views
Diffstat (limited to 'app/Datatables.php')
| -rw-r--r-- | app/Datatables.php | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/app/Datatables.php b/app/Datatables.php index 36c3f924e9..11a591f9c5 100644 --- a/app/Datatables.php +++ b/app/Datatables.php @@ -26,17 +26,6 @@ class Datatables { /** * Generate the HTML attributes for I18N. * - * @return string[] - */ - private static function defaultAttributes() { - return [ - 'style' => 'display:none;', // Hide until processed, to prevent FOUC. - ]; - } - - /** - * Generate the HTML attributes for I18N. - * * @param int[] $lengths * * @return string[] @@ -102,46 +91,4 @@ class Datatables { 'data-order' => '[[1, "desc"]]', ]); } - - /** - * Generate the HTML attributes for a table of notes. - * - * @return string - */ - public static function noteTableAttributes() { - return Html::attributes([ - 'class' => 'table table-bordered table-sm datatables table-note', - //'data-columns' => '[{ type: "text" }, { type: "text" }, { type: "num" }, { type: "num" }, { type: "num" }, { type: "text" }, { sorting: false }]', - 'data-columns' => '[null, null, null, null, null, null]', - 'data-state-save' => 'true', - ] + self::defaultAttributes() + self::languageAttributes()); - } - - /** - * Generate the HTML attributes for a table of repositories. - * - * @return string - */ - public static function repositoryTableAttributes() { - return Html::attributes([ - 'class' => 'table table-bordered table-sm datatables table-repository', - //'data-columns' => '[{ type: "text" }, { type: "num" }, { type: "text" }, { sorting: false }]', - 'data-columns' => '[null, null, null]', - 'data-state-save' => 'true', - ] + self::languageAttributes()); - } - - /** - * Generate the HTML attributes for a table of sources. - * - * @return string - */ - public static function sourceTableAttributes() { - return Html::attributes([ - 'class' => 'table table-bordered table-sm datatables table-source', - //'data-columns' => '[{ type: "text" }, { type: "text" }, { type: "num" }, { type: "num" }, { type: "num" }, { type: "num" }, { type: "text" }, { sorting: false }]', - 'data-columns' => '[null, null, null, null, null, null, null]', - 'data-state-save' => 'true', - ] + self::languageAttributes()); - } } |
